capistrano-hostmenu 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d795ea1362f08f1483ed9bc56e9e8370df5c0b1c
4
- data.tar.gz: 27471bb378fb5a8eb14972c98785df573164e91a
3
+ metadata.gz: a74e37b671362df803d0f675acf264ff3d5b796e
4
+ data.tar.gz: 311bb958cd02a5c0f61ffcfd721934647109216e
5
5
  SHA512:
6
- metadata.gz: 6712121f3e1dd486dd87ee1372d785f0bca0a64786eea8a78f6833a433b740a4dc0e328e41e01e4baf7178ab4b5cc35fd661b8b8b076e035c68b4379b4cf0153
7
- data.tar.gz: 8d35b3e09c4e23d975adeb9d5a8887d4193e86f04bd9a59a219681979f20fc8077aed871d0c50fc25debc72c1f14f60232a8600a85b9c56d81f7c9f57f71d765
6
+ metadata.gz: 9e206f204bf2a9f98339cf6151aafaf865579a2736e6c2f0fa5c80955f9cf8dc6619abd1e2f025922156429c331f16b75b06db916821a27b834a5c751b4d8334
7
+ data.tar.gz: 5b081c3f3fe0c4d80403f4bf4de69e50811f7e26c2dac9a5848947a4d01233e48268998c40fde9922601f79c4a126cc56179cefe5411cc456aeb7f9464877cae
data/Gemfile.lock CHANGED
@@ -1,27 +1,41 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-hostmenu (0.1.0)
4
+ capistrano-hostmenu (0.1.1)
5
5
  capistrano (>= 3.0.0)
6
6
 
7
7
  GEM
8
8
  specs:
9
- capistrano (3.3.5)
10
- capistrano-stats (~> 1.1.0)
9
+ capistrano (3.4.0)
11
10
  i18n
12
11
  rake (>= 10.0.0)
13
12
  sshkit (~> 1.3)
14
- capistrano-stats (1.1.1)
15
- colorize (0.7.5)
13
+ colorize (0.7.7)
14
+ diff-lcs (1.2.5)
16
15
  i18n (0.7.0)
17
16
  net-scp (1.2.1)
18
17
  net-ssh (>= 2.6.5)
19
18
  net-ssh (2.9.2)
20
19
  rake (10.4.2)
21
- sshkit (1.6.1)
20
+ rake-compiler (0.9.2)
21
+ rake
22
+ rspec (3.1.0)
23
+ rspec-core (~> 3.1.0)
24
+ rspec-expectations (~> 3.1.0)
25
+ rspec-mocks (~> 3.1.0)
26
+ rspec-core (3.1.7)
27
+ rspec-support (~> 3.1.0)
28
+ rspec-expectations (3.1.2)
29
+ diff-lcs (>= 1.2.0, < 2.0)
30
+ rspec-support (~> 3.1.0)
31
+ rspec-mocks (3.1.3)
32
+ rspec-support (~> 3.1.0)
33
+ rspec-support (3.1.2)
34
+ sshkit (1.7.1)
22
35
  colorize (>= 0.7.0)
23
36
  net-scp (>= 1.1.2)
24
37
  net-ssh (>= 2.8.0)
38
+ yard (0.8.7.6)
25
39
 
26
40
  PLATFORMS
27
41
  ruby
@@ -30,3 +44,9 @@ DEPENDENCIES
30
44
  bundler
31
45
  capistrano-hostmenu!
32
46
  rake
47
+ rake-compiler
48
+ rspec
49
+ yard
50
+
51
+ BUNDLED WITH
52
+ 1.10.5
data/README.md CHANGED
@@ -1,8 +1,17 @@
1
1
  # capistrano-hostmenu
2
- A capistrano plugin which allows you to choose deploy host via a text menu.
2
+ A capistrano plugin which allows you to choose one or more server to deploy via a text menu.
3
3
 
4
4
  Here's an example:
5
5
 
6
+ In you deploy config:
7
+
8
+ ~~~ruby
9
+ server 'example1.com', user: "#{fetch(:deploy_user)}", roles: %w{web app}
10
+ server 'example2.com', user: "#{fetch(:deploy_user)}", roles: %w{web app}
11
+ ~~~
12
+
13
+ when you run `cap deploy` or `cap deploy:start` or other deploy tasks, you will see a menu:
14
+
6
15
  ~~~sh
7
16
  Please choose which server(s) to deploy:
8
17
  [1] example1.com
@@ -11,6 +20,12 @@ Please choose which server(s) to deploy:
11
20
  Please enter host_numbers (3):
12
21
  ~~~
13
22
 
23
+ you can answer with:
24
+
25
+ * `1` for choosing server `example1.com`,
26
+ * `2` for `example2.com`,
27
+ * `3` or `1,2` for both.
28
+
14
29
  ## Installation
15
30
 
16
31
  ~~~sh
@@ -20,7 +35,7 @@ gem install capistrano-hostmenu
20
35
  or put this in your `Gemfile` then run `bundle install`:
21
36
 
22
37
  ~~~ruby
23
- gem 'capistrano-hostmenu'
38
+ gem 'capistrano-hostmenu', require: false
24
39
  ~~~
25
40
 
26
41
  After the gem is installed, put this in your `Capfile`:
@@ -36,8 +51,8 @@ Then you will see host selecting menu any time before deploying.
36
51
  set these variables in your deploy config (commonly `deploy.rb`)
37
52
 
38
53
  ~~~ruby
39
- set :host_menu_prompt_msg, 'Please choose which server(s) to deploy:'.blue
40
54
  set :host_menu_default_selection, :all # or :first, 1
55
+ set :host_menu_prompt_msg, 'Please choose which server(s) to deploy:'.blue
41
56
  set :host_menu_caption_of_all, 'all'
42
57
  set :host_menu_caption_of_default, '(default)'
43
58
  set :host_menu_invalid_range_msg, 'Please provide a number in (1..%d)'.red
@@ -4,8 +4,8 @@ namespace :deploy do
4
4
  task :info do
5
5
  puts "--" * 50
6
6
  puts "About to deploy, check your seatbelt~"
7
- puts "env: #{fetch(:rails_env).bold.blue}"
8
- puts "branch: #{fetch(:branch).bold.green}"
7
+ puts "env: #{fetch(:rails_env).to_s.bold.blue}"
8
+ puts "branch: #{fetch(:branch).to_s.bold.green}"
9
9
  puts "server: #{roles(:all).map(&:hostname).join("\n ").red}"
10
10
  puts "--" * 50
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-hostmenu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - qhwa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-01 00:00:00.000000000 Z
11
+ date: 2015-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake-compiler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +66,34 @@ dependencies:
52
66
  - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: yard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
55
97
  description:
56
98
  email: qhwa@163.com
57
99
  executables: []
@@ -87,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
129
  version: '0'
88
130
  requirements: []
89
131
  rubyforge_project:
90
- rubygems_version: 2.4.5
132
+ rubygems_version: 2.4.6
91
133
  signing_key:
92
134
  specification_version: 4
93
135
  summary: Capistrano plugin that prompt a text menu to choose target host.