simple_deploy 0.6.1 → 0.6.2

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/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ ## v0.6.2
2
+
3
+ * Corrected the deploy command so it exits if a stack update fails
4
+ * Fixed help so it shows all commands
5
+ * Refactored the outputs command to show less whitespace
6
+
1
7
  ## v0.6.1
2
8
 
3
9
  * Corrected the clone command so it accepts new attributes
@@ -76,6 +76,9 @@ EOS
76
76
  logger.error "Deployment to #{name} did not complete succesfully."
77
77
  exit 1
78
78
  end
79
+ else
80
+ logger.error "Update of #{name} did not complete succesfully."
81
+ exit 1
79
82
  end
80
83
 
81
84
  end
@@ -32,9 +32,12 @@ EOS
32
32
  :config => config,
33
33
  :logger => logger
34
34
 
35
+ # we need a little whitespace
36
+ puts
37
+
35
38
  outputs = stack.outputs
36
39
  outputs.each do |hash|
37
- puts "%30s: %s" % [hash['OutputKey'], hash['OutputValue']]
40
+ puts "%s: %s" % [hash['OutputKey'], hash['OutputValue']]
38
41
  end
39
42
  end
40
43
  end
@@ -63,13 +63,13 @@ module SimpleDeploy
63
63
  when 'update'
64
64
  CLI::Update.new.update
65
65
  when '-h'
66
- puts "simple_deploy [attributes|clone|create|destroy|environments|events|execute|instances|list|template|outputs|parameters|protect|resources|ssh|status|update] [options]"
66
+ puts "simple_deploy [attributes|clone|create|deploy|destroy|environments|events|execute|instances|list|outputs|parameters|protect|resources|ssh|status|template|update] [options]"
67
67
  puts "Append -h for help on specific subcommand."
68
68
  when '-v'
69
69
  puts SimpleDeploy::VERSION
70
70
  else
71
71
  puts "Unknown command: '#{cmd}'."
72
- puts "simple_deploy [attributes|clone|create|destroy|environments|events|execute|instances|list|template|outputs|parameters|protect|resources|ssh|status|update] [options]"
72
+ puts "simple_deploy [attributes|clone|create|deploy|destroy|environments|events|execute|instances|list|outputs|parameters|protect|resources|ssh|status|template|update] [options]"
73
73
  puts "Append -h for help on specific subcommand."
74
74
  exit 1
75
75
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleDeploy
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -118,7 +118,7 @@ describe SimpleDeploy::CLI::Deploy do
118
118
  subject.deploy
119
119
  end
120
120
 
121
- it "should skip the deploy if the attributes update is not successful" do
121
+ it "should exit with a status of 1 if the attributes update is not successful" do
122
122
  options = { :environment => 'my_env',
123
123
  :log_level => 'debug',
124
124
  :name => ['my_stack'],
@@ -144,12 +144,14 @@ describe SimpleDeploy::CLI::Deploy do
144
144
  :internal => false).
145
145
  and_return(@stack)
146
146
 
147
- @stack.should_receive(:update).with(hash_including(:force => true, :attributes => [{'foo' => 'bah'}])).and_return(false)
148
- @stack.should_not_receive(:deploy)
149
- @notifier.should_not_receive(:send_deployment_start_message)
150
- @notifier.should_not_receive(:send_deployment_complete_message)
147
+ @stack.should_receive(:update).with(hash_including(:force => true,
148
+ :attributes => [{'foo' => 'bah'}])).and_return(false)
151
149
 
152
- subject.deploy
150
+ begin
151
+ subject.deploy
152
+ rescue SystemExit => e
153
+ e.status.should == 1
154
+ end
153
155
  end
154
156
 
155
157
  it "should do the deploy if there are no attributes to update" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-15 00:00:00.000000000 Z
12
+ date: 2012-12-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70363065994720 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70363065994720
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rspec
27
- requirement: &70363066009920 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,51 +37,76 @@ dependencies:
32
37
  version: 2.11.0
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70363066009920
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 2.11.0
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: capistrano
38
- requirement: &70363066009000 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
- - - =
51
+ - - '='
42
52
  - !ruby/object:Gem::Version
43
53
  version: 2.13.5
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *70363066009000
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.13.5
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: stackster
49
- requirement: &70363066008120 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
- - - =
67
+ - - '='
53
68
  - !ruby/object:Gem::Version
54
69
  version: 0.3.2
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *70363066008120
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - '='
76
+ - !ruby/object:Gem::Version
77
+ version: 0.3.2
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: tinder
60
- requirement: &70363066006760 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
- - - =
83
+ - - '='
64
84
  - !ruby/object:Gem::Version
65
85
  version: 1.9.1
66
86
  type: :runtime
67
87
  prerelease: false
68
- version_requirements: *70363066006760
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - '='
92
+ - !ruby/object:Gem::Version
93
+ version: 1.9.1
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: trollop
71
- requirement: &70363066005780 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
- - - =
99
+ - - '='
75
100
  - !ruby/object:Gem::Version
76
101
  version: '2.0'
77
102
  type: :runtime
78
103
  prerelease: false
79
- version_requirements: *70363066005780
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - '='
108
+ - !ruby/object:Gem::Version
109
+ version: '2.0'
80
110
  description: I am designed to deploy artifacts uploaded by Heirloom
81
111
  email:
82
112
  - brett@weav.net
@@ -163,7 +193,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
193
  version: '0'
164
194
  segments:
165
195
  - 0
166
- hash: -1601352363388167763
196
+ hash: 1066179767380513857
167
197
  required_rubygems_version: !ruby/object:Gem::Requirement
168
198
  none: false
169
199
  requirements:
@@ -172,10 +202,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
202
  version: '0'
173
203
  segments:
174
204
  - 0
175
- hash: -1601352363388167763
205
+ hash: 1066179767380513857
176
206
  requirements: []
177
207
  rubyforge_project: simple_deploy
178
- rubygems_version: 1.8.16
208
+ rubygems_version: 1.8.24
179
209
  signing_key:
180
210
  specification_version: 3
181
211
  summary: I help with deployments