cap-git-deploy 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -1,4 +1,17 @@
1
1
  *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
2
6
  Gemfile.lock
3
- .bundle/
4
- bin/
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in capistrano-git-deploy.gemspec
4
- gemspec
3
+ # Specify your gem's dependencies in cap-git-deploy.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Nicola Racco
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -61,4 +61,12 @@ To setup your environment, when your recipes are ready, type the following comma
61
61
  cap deploy:setup
62
62
  ```
63
63
 
64
- This will setup your git repository on the remote host.
64
+ This will setup your git repository on the remote host.
65
+
66
+ ## Other Stuff: Logs
67
+
68
+ Tail the current environment log with the "logs" task. So the following command will do a "tail -F" on "log/beta.log"
69
+
70
+ ```bash
71
+ cap beta logs
72
+ ````
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -1,24 +1,24 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "cap-git-deploy/version"
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cap-git-deploy/version'
4
5
 
5
- Gem::Specification.new do |s|
6
- s.name = "cap-git-deploy"
7
- s.version = Cap::Git::Deploy::VERSION
8
- s.authors = ["MIKAMAI"]
9
- s.email = ["projects@mikamai.com"]
10
- s.homepage = "http://www.mikamai.com"
11
- s.summary = %q{Mikamai-style deploy strategy}
12
- s.description = %q{Mikamai-style deploy strategy}
6
+ Gem::Specification.new do |gem|
7
+ gem.name = 'cap-git-deploy'
8
+ gem.version = Cap::Git::Deploy::VERSION
9
+ gem.authors = ['Nicola Racco', 'Elia Schito']
10
+ gem.email = ['nicola@mikamai.com']
11
+ gem.description = %q{Mikamai-style deploy strategy}
12
+ gem.summary = %q{Mikamai-style deploy strategy}
13
+ gem.homepage = "http://www.mikamai.com"
13
14
 
14
- s.files = `git ls-files`.split("\n")
15
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
- s.require_paths = ["lib"]
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.require_paths = ["lib"]
18
19
 
19
- # specify any dependencies here; for example:
20
- # s.add_development_dependency "rspec"
21
- #
22
- s.add_runtime_dependency "capistrano"
23
- s.add_runtime_dependency "grit"
24
- end
20
+ gem.add_runtime_dependency 'capistrano'
21
+ gem.add_runtime_dependency 'grit'
22
+
23
+ gem.add_development_dependency 'rake'
24
+ end
@@ -1,7 +1,7 @@
1
1
  module Cap
2
2
  module Git
3
3
  module Deploy
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.6'
5
5
  end
6
6
  end
7
- end
7
+ end
@@ -1,5 +1,5 @@
1
1
  require 'capistrano'
2
- require "cap-git-deploy/version"
2
+ require 'cap-git-deploy/version'
3
3
 
4
4
  require 'grit'
5
5
  require 'etc'
@@ -30,4 +30,4 @@ if Capistrano::Configuration.instance
30
30
  Dir.glob(File.join(File.dirname(__FILE__), '/recipes/*.rb')).sort.each do |f|
31
31
  Capistrano::Configuration.instance.load f
32
32
  end
33
- end
33
+ end
@@ -63,6 +63,8 @@ namespace :deploy do
63
63
 
64
64
  run "cd #{current_path} && git fetch" unless rolling_back
65
65
  run "cd #{current_path} && git reset --hard #{branch_name}"
66
+
67
+ finalize_update
66
68
  end
67
69
 
68
70
  task :insert_tag, :except => { :no_release => true } do
@@ -74,4 +76,4 @@ end
74
76
  # launch bundle:install after update task if it's detected
75
77
  # because it will not run with his standard behavior (before deploy:finalize_update)
76
78
  # as we are using this custom git-style deployment procedure
77
- after 'deploy:update', 'bundle:install' if find_task 'bundle:install'
79
+ after 'deploy:update', 'bundle:install' if find_task 'bundle:install'
@@ -1,5 +1,8 @@
1
+ set :current_revision do
2
+ capture("head -1 #{current_path}/REVISION", :except => { :no_release => true }).chomp
3
+ end
4
+
1
5
  set :revision_file, 'REVISION'
2
- set(:current_revision) { capture("head -1 #{current_path}/REVISION", :except => { :no_release => true }).chomp }
3
6
 
4
7
  namespace :revision do
5
8
  desc "Create a REVISION file containing the SHA of the deployed commit"
@@ -30,4 +33,4 @@ namespace :revision do
30
33
  end
31
34
  end
32
35
 
33
- after 'deploy:update', 'revision:set'
36
+ after 'deploy:update', 'revision:set'
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-git-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - MIKAMAI
8
+ - Nicola Racco
9
+ - Elia Schito
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-01-14 00:00:00.000000000 Z
13
+ date: 2013-01-15 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: capistrano
@@ -43,16 +44,34 @@ dependencies:
43
44
  - - ! '>='
44
45
  - !ruby/object:Gem::Version
45
46
  version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
46
63
  description: Mikamai-style deploy strategy
47
64
  email:
48
- - projects@mikamai.com
65
+ - nicola@mikamai.com
49
66
  executables: []
50
67
  extensions: []
51
68
  extra_rdoc_files: []
52
69
  files:
53
70
  - .gitignore
54
71
  - Gemfile
72
+ - LICENSE.txt
55
73
  - README.md
74
+ - Rakefile
56
75
  - cap-git-deploy.gemspec
57
76
  - lib/cap-git-deploy.rb
58
77
  - lib/cap-git-deploy/version.rb
@@ -71,12 +90,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
90
  - - ! '>='
72
91
  - !ruby/object:Gem::Version
73
92
  version: '0'
93
+ segments:
94
+ - 0
95
+ hash: -3349321138983095283
74
96
  required_rubygems_version: !ruby/object:Gem::Requirement
75
97
  none: false
76
98
  requirements:
77
99
  - - ! '>='
78
100
  - !ruby/object:Gem::Version
79
101
  version: '0'
102
+ segments:
103
+ - 0
104
+ hash: -3349321138983095283
80
105
  requirements: []
81
106
  rubyforge_project:
82
107
  rubygems_version: 1.8.24