This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "id": "pings", | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/ping" | |
| }, | |
| "definitions": { | |
| "ping": { | |
| "id": "ping", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Fastlane | |
| module Actions | |
| class BackupInfoPlistAction < Action | |
| def self.run params | |
| plist_path = params[:plist_path] | |
| FileUtils.cp(plist_path, "#{plist_path}.back", {:preserve => true}) | |
| end | |
| def self.details | |
| 'This action backup your "Info.plist".' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Command Line Toolsが入っているかの確認 | |
| stat: path=/usr/include | |
| register: command_line_tools_dir | |
| - name: Command Line Toolsが入っていなかったらインストールする | |
| shell: | | |
| PLACEHOLDER=/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress | |
| touch $PLACEHOLDER | |
| PROD=$(softwareupdate -l | grep "\*.*Command Line" | head -n 1 | awk -F"*" '{print $2}' | sed -e 's/^ *//' | tr -d '\n') | |
| softwareupdate -i "${PROD}" | |
| [[ -f $PLACEHOLDER ]] && rm $PLACEHOLDER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "twitter" | |
| client = Twitter::REST::Client.new do |config| | |
| config.consumer_key = "consumer_key" | |
| config.consumer_secret = "consumer_secret" | |
| config.access_token = "access_token" | |
| config.access_token_secret = "access_token_secret" | |
| end | |
| client.unblock client.blocked_ids.to_a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func install_vagrant_plugin(item) { | |
| - command: vagrant plugin list | grep -E '^{{ item }}' | |
| register: exist_vagrant_plugin | |
| - shell: vagrant plugin install {{ item }} | |
| when: not exist_vagrant_plugin | |
| } | |
| items.each {|item| install_vagrant_plugin(item) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - stat: path=~/.bash_profile | |
| register: bash_profile | |
| - file: path=~/.bash_profile state=touch | |
| when: not bash_profile.stat.exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Vagrant.configure(2) do |config| | |
| config.ssh.insert_key = false | |
| config.vm.define :yosemite do |node| | |
| node.vm.box = 'osx-yosemite' | |
| node.vm.network :forwarded_port, guest: 22, host: 2001, id: "ssh" | |
| node.vm.network :private_network, ip: "192.168.33.11" | |
| node.vm.synced_folder ".", "/vagrant", type: "nfs", nfs: true | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: vagrant | |
| roles: | |
| - role: base | |
| vars: | |
| rbenv: | |
| global: 2.0.0-p481 | |
| ruby: | |
| gems: | |
| - bundler | |
| homebrew: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Command Line Toolsが入っているかの確認 | |
| stat: path=/usr/include | |
| register: command_line_tools_dir | |
| - name: Command Line Toolsが入っていなかったらインストールする | |
| shell: | | |
| PLACEHOLDER=/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress | |
| touch $PLACEHOLDER | |
| PROD=$(softwareupdate -l | grep "\*.*Command Line" | head -n 1 | awk -F"*" '{print $2}' | sed -e 's/^ *//' | tr -d '\n') | |
| softwareupdate -i "${PROD}" | |
| [[ -f $PLACEHOLDER ]] && rm $PLACEHOLDER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Environment | |
| def self.travis? | |
| !!ENV['TRAVIS'] | |
| end | |
| # PullRequestはbranch名の最後が`_android`で終わってたらAndroidビルドする | |
| # PullRequestではない場合masterとadhocの時のみAndroidビルドする | |
| def self.build_android? | |
| return true unless travis? | |
| return true if can_adhoc? |