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
| git status | |
| # mostra o status de tudo, o que foi alterado, o que foi criado, o que foi deletado | |
| git add <arquivo> | |
| # adiciona o arquivo para ser tracked pelo git | |
| git add -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
| { | |
| :before=>"9e46da9a352aefeeefc4344de5ab2b513fc33716", | |
| :repository=>{:name=>"test"}, | |
| :after=>"65cbbc08b054b8e9626b20d81fdaab70a2ad2926", | |
| :ref=>"refs/heads/master", | |
| :commits=>[ | |
| { | |
| :commiter=>{:name=>"Luiz Felipe", :email=>"[email protected]"}, | |
| :message=>"commit NOW 4", | |
| :timestamp=>"2011-06-28 10:22:08", |
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
| config.vm.provision :chef_solo do |chef| | |
| chef.cookbooks_path = "vendor/cookbooks/vagrant_base" | |
| chef.log_level = :debug | |
| chef.add_recipe "apt" | |
| chef.add_recipe "build-essential" | |
| chef.add_recipe "networking_basic" | |
| chef.add_recipe "openssl" | |
| chef.add_recipe "git" |
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
| cookbook_file "/home/vagrant/.ssh/known_hosts" do | |
| owner "vagrant" | |
| group "vagrant" | |
| mode 0755 | |
| source "known_hosts" | |
| 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
| this is my tree inside custom_cookbooks | |
| . | |
| └── nzn | |
| └── known_hosts | |
| ├── files | |
| │ └── default | |
| │ └── known_hosts | |
| └── recipes | |
| └── default.rb |
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
| git clone --no-checkout --depth 1 [email protected]:foo/bar.git && cd bar && git show HEAD:path/to/file.txt |
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
| def fetch | |
| rdm = Random.rand(2000) | |
| file = `git clone --no-checkout --depth 1 --quiet #{repository.clone_url} /tmp/travis-yml-#{rdm} && cd /tmp/travis-yml-#{rdm} && git show HEAD:.travis.yml && rm -rf /tmp/travis-yml-#{rdm}` | |
| file == "" ? {} : parse(file) | |
| 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
| Using nzn_denounces (0.4.0) from ssh://[email protected]:2202/nzn_denounces.git (at master) fatal: Not a git repository (or any of the parent directories): .git | |
| Git error: command `git fetch --force --quiet --tags "/home/vagrant/.rvm/gems/ruby-1.9.2-p180/cache/bundler/git/nzn_denounces-4e2858d3b9052ba97aff50920a9d94c6ef48a38a"` in directory /home/vagrant/.rvm/gems/ruby-1.9.2-p180/bundler/gems/nzn_denounces-7565d484f2df has failed. | |
| If this error persists you could try removing the cache directory '/home/vagrant/.rvm/gems/ruby-1.9.2-p180/cache/bundler/git/nzn_denounces-4e2858d3b9052ba97aff50920a9d94c6ef48a38a' |
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
| $ bundle install | |
| ssh://[email protected]:2202/nzn_categories.git | |
| remote: Counting objects: 510 [K | |
| remote: Counting objects: 1609, done.[K | |
| remote: Compressing objects: 100% (1278/1278), done.[K | |
| Receiving objects: 64% (1030/1609) | |
| Receiving objects: 98% (1577/1609) | |
| remote: Total 1609 (delta 663), reused 624 (delta 160)[K | |
| Receiving objects: 100% (1609/1609), 2.80 MiB, done. | |
| Resolving deltas: 100% (663/663), done. |
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
| source "http://gems.github.com" | |
| source 'http://rubygems.org' | |
| source 'http://gemcutter.org' | |
| gem 'rails', '3.0.9' | |
| gem 'rake', "0.8.7" | |
| gem 'dynamic_form' | |
| gem 'jquery-rails' | |
| gem 'hoptoad_notifier' |
OlderNewer