bosh_cli 0.17 → 0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -247,7 +247,6 @@ module Bosh::Cli
247
247
  err("`#{blob_path}' is a symlink")
248
248
  end
249
249
 
250
- object_id = rand(36**9).to_s(36)
251
250
  checksum = file_checksum(blob_path)
252
251
 
253
252
  progress(path, "uploading...")
@@ -73,7 +73,19 @@ module Bosh::Cli::Command
73
73
  output = "No differences."
74
74
  @no_differences = true
75
75
  end
76
- say(output)
76
+
77
+ output.each_line do |line|
78
+ added = line[0..0] == "+"
79
+ removed = line[0..0] == "-"
80
+
81
+ if added
82
+ say(line.chomp.green)
83
+ elsif removed
84
+ say(line.chomp.red)
85
+ else
86
+ say(line)
87
+ end
88
+ end
77
89
  end
78
90
 
79
91
  # Alias for find. It is used to find within a given object, not the default
@@ -138,6 +138,7 @@ module Bosh::Cli
138
138
  ENV["RUBYOPT"] = ENV["RUBYOPT"].sub("-rbundler/setup", "")
139
139
  end
140
140
  ENV["BUILD_DIR"] = build_dir
141
+ ENV["RELEASE_DIR"] = @release_dir
141
142
  in_build_dir do
142
143
  pre_packaging_out = `bash -x pre_packaging 2>&1`
143
144
  pre_packaging_out.split("\n").each do |line|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bosh
4
4
  module Cli
5
- VERSION = "0.17"
5
+ VERSION = "0.18"
6
6
  end
7
7
  end
@@ -493,7 +493,7 @@ describe Bosh::Cli::Director do
493
493
  with("/tasks/1").
494
494
  and_return([200, JSON.generate("state" => "error")])
495
495
 
496
- @director.should_receive(:get).exactly(1).times
496
+ @director.should_receive(:get).exactly(2).times
497
497
 
498
498
  @director.poll_task(1, :poll_interval => 0, :max_polls => 10).
499
499
  should == :error
metadata CHANGED
@@ -1,198 +1,189 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bosh_cli
3
- version: !ruby/object:Gem::Version
4
- hash: 41
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.18'
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 17
9
- version: "0.17"
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - VMware
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-04-26 00:00:00 Z
18
- dependencies:
19
- - !ruby/object:Gem::Dependency
20
- prerelease: false
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-05-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: json_pure
16
+ requirement: !ruby/object:Gem::Requirement
22
17
  none: false
23
- requirements:
18
+ requirements:
24
19
  - - ~>
25
- - !ruby/object:Gem::Version
26
- hash: 13
27
- segments:
28
- - 1
29
- - 6
30
- - 1
20
+ - !ruby/object:Gem::Version
31
21
  version: 1.6.1
32
- requirement: *id001
33
- name: json_pure
34
22
  type: :runtime
35
- - !ruby/object:Gem::Dependency
36
23
  prerelease: false
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
38
25
  none: false
39
- requirements:
26
+ requirements:
40
27
  - - ~>
41
- - !ruby/object:Gem::Version
42
- hash: 11
43
- segments:
44
- - 1
45
- - 6
46
- - 2
47
- version: 1.6.2
48
- requirement: *id002
28
+ - !ruby/object:Gem::Version
29
+ version: 1.6.1
30
+ - !ruby/object:Gem::Dependency
49
31
  name: highline
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1.6.2
50
38
  type: :runtime
51
- - !ruby/object:Gem::Dependency
52
39
  prerelease: false
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
54
41
  none: false
55
- requirements:
42
+ requirements:
56
43
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 59
59
- segments:
60
- - 0
61
- - 9
62
- - 0
63
- version: 0.9.0
64
- requirement: *id003
44
+ - !ruby/object:Gem::Version
45
+ version: 1.6.2
46
+ - !ruby/object:Gem::Dependency
65
47
  name: progressbar
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 0.9.0
66
54
  type: :runtime
67
- - !ruby/object:Gem::Dependency
68
55
  prerelease: false
69
- version_requirements: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
70
57
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 15
75
- segments:
76
- - 2
77
- - 2
78
- - 4
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.9.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: httpclient
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
79
69
  version: 2.2.4
80
70
  - - <=
81
- - !ruby/object:Gem::Version
82
- hash: 15
83
- segments:
84
- - 2
85
- - 2
86
- - 4
71
+ - !ruby/object:Gem::Version
87
72
  version: 2.2.4
88
- requirement: *id004
89
- name: httpclient
90
73
  type: :runtime
91
- - !ruby/object:Gem::Dependency
92
74
  prerelease: false
93
- version_requirements: &id005 !ruby/object:Gem::Requirement
75
+ version_requirements: !ruby/object:Gem::Requirement
94
76
  none: false
95
- requirements:
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: 2.2.4
81
+ - - <=
82
+ - !ruby/object:Gem::Version
83
+ version: 2.2.4
84
+ - !ruby/object:Gem::Dependency
85
+ name: terminal-table
86
+ requirement: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
96
89
  - - ~>
97
- - !ruby/object:Gem::Version
98
- hash: 3
99
- segments:
100
- - 1
101
- - 4
102
- - 2
90
+ - !ruby/object:Gem::Version
103
91
  version: 1.4.2
104
- requirement: *id005
105
- name: terminal-table
106
92
  type: :runtime
107
- - !ruby/object:Gem::Dependency
108
93
  prerelease: false
109
- version_requirements: &id006 !ruby/object:Gem::Requirement
94
+ version_requirements: !ruby/object:Gem::Requirement
110
95
  none: false
111
- requirements:
96
+ requirements:
112
97
  - - ~>
113
- - !ruby/object:Gem::Version
114
- hash: 9
115
- segments:
116
- - 0
117
- - 3
118
- - 13
119
- version: 0.3.13
120
- requirement: *id006
98
+ - !ruby/object:Gem::Version
99
+ version: 1.4.2
100
+ - !ruby/object:Gem::Dependency
121
101
  name: blobstore_client
102
+ requirement: !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ~>
106
+ - !ruby/object:Gem::Version
107
+ version: 0.3.13
122
108
  type: :runtime
123
- - !ruby/object:Gem::Dependency
124
109
  prerelease: false
125
- version_requirements: &id007 !ruby/object:Gem::Requirement
110
+ version_requirements: !ruby/object:Gem::Requirement
126
111
  none: false
127
- requirements:
112
+ requirements:
128
113
  - - ~>
129
- - !ruby/object:Gem::Version
130
- hash: 5
131
- segments:
132
- - 2
133
- - 2
134
- - 1
135
- version: 2.2.1
136
- requirement: *id007
114
+ - !ruby/object:Gem::Version
115
+ version: 0.3.13
116
+ - !ruby/object:Gem::Dependency
137
117
  name: net-ssh
118
+ requirement: !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ~>
122
+ - !ruby/object:Gem::Version
123
+ version: 2.2.1
138
124
  type: :runtime
139
- - !ruby/object:Gem::Dependency
140
125
  prerelease: false
141
- version_requirements: &id008 !ruby/object:Gem::Requirement
126
+ version_requirements: !ruby/object:Gem::Requirement
142
127
  none: false
143
- requirements:
128
+ requirements:
144
129
  - - ~>
145
- - !ruby/object:Gem::Version
146
- hash: 19
147
- segments:
148
- - 1
149
- - 1
150
- - 0
151
- version: 1.1.0
152
- requirement: *id008
130
+ - !ruby/object:Gem::Version
131
+ version: 2.2.1
132
+ - !ruby/object:Gem::Dependency
153
133
  name: net-ssh-gateway
134
+ requirement: !ruby/object:Gem::Requirement
135
+ none: false
136
+ requirements:
137
+ - - ~>
138
+ - !ruby/object:Gem::Version
139
+ version: 1.1.0
154
140
  type: :runtime
155
- - !ruby/object:Gem::Dependency
156
141
  prerelease: false
157
- version_requirements: &id009 !ruby/object:Gem::Requirement
142
+ version_requirements: !ruby/object:Gem::Requirement
158
143
  none: false
159
- requirements:
144
+ requirements:
160
145
  - - ~>
161
- - !ruby/object:Gem::Version
162
- hash: 31
163
- segments:
164
- - 1
165
- - 0
166
- - 4
167
- version: 1.0.4
168
- requirement: *id009
146
+ - !ruby/object:Gem::Version
147
+ version: 1.1.0
148
+ - !ruby/object:Gem::Dependency
169
149
  name: net-scp
150
+ requirement: !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ~>
154
+ - !ruby/object:Gem::Version
155
+ version: 1.0.4
170
156
  type: :runtime
171
- - !ruby/object:Gem::Dependency
172
157
  prerelease: false
173
- version_requirements: &id010 !ruby/object:Gem::Requirement
158
+ version_requirements: !ruby/object:Gem::Requirement
174
159
  none: false
175
- requirements:
160
+ requirements:
176
161
  - - ~>
177
- - !ruby/object:Gem::Version
178
- hash: 3
179
- segments:
180
- - 1
181
- - 5
182
- - 0
183
- version: 1.5.0
184
- requirement: *id010
162
+ - !ruby/object:Gem::Version
163
+ version: 1.0.4
164
+ - !ruby/object:Gem::Dependency
185
165
  name: netaddr
166
+ requirement: !ruby/object:Gem::Requirement
167
+ none: false
168
+ requirements:
169
+ - - ~>
170
+ - !ruby/object:Gem::Version
171
+ version: 1.5.0
186
172
  type: :runtime
173
+ prerelease: false
174
+ version_requirements: !ruby/object:Gem::Requirement
175
+ none: false
176
+ requirements:
177
+ - - ~>
178
+ - !ruby/object:Gem::Version
179
+ version: 1.5.0
187
180
  description: BOSH command-line tool for release engineering and deployment
188
181
  email: support@vmware.com
189
- executables:
182
+ executables:
190
183
  - bosh
191
184
  extensions: []
192
-
193
185
  extra_rdoc_files: []
194
-
195
- files:
186
+ files:
196
187
  - bin/bosh
197
188
  - lib/cli.rb
198
189
  - lib/cli/blob_manager.rb
@@ -309,38 +300,35 @@ files:
309
300
  - spec/unit/versions_index_spec.rb
310
301
  homepage: http://www.vmware.com
311
302
  licenses: []
312
-
313
303
  post_install_message:
314
304
  rdoc_options: []
315
-
316
- require_paths:
305
+ require_paths:
317
306
  - lib
318
- required_ruby_version: !ruby/object:Gem::Requirement
307
+ required_ruby_version: !ruby/object:Gem::Requirement
319
308
  none: false
320
- requirements:
321
- - - ">="
322
- - !ruby/object:Gem::Version
323
- hash: 3
324
- segments:
309
+ requirements:
310
+ - - ! '>='
311
+ - !ruby/object:Gem::Version
312
+ version: '0'
313
+ segments:
325
314
  - 0
326
- version: "0"
327
- required_rubygems_version: !ruby/object:Gem::Requirement
315
+ hash: 4379440498501370449
316
+ required_rubygems_version: !ruby/object:Gem::Requirement
328
317
  none: false
329
- requirements:
330
- - - ">="
331
- - !ruby/object:Gem::Version
332
- hash: 3
333
- segments:
318
+ requirements:
319
+ - - ! '>='
320
+ - !ruby/object:Gem::Version
321
+ version: '0'
322
+ segments:
334
323
  - 0
335
- version: "0"
324
+ hash: 4379440498501370449
336
325
  requirements: []
337
-
338
326
  rubyforge_project:
339
- rubygems_version: 1.8.17
327
+ rubygems_version: 1.8.23
340
328
  signing_key:
341
329
  specification_version: 3
342
330
  summary: BOSH CLI
343
- test_files:
331
+ test_files:
344
332
  - spec/assets/biff/bad_gateway_config.yml
345
333
  - spec/assets/biff/good_simple_config.yml
346
334
  - spec/assets/biff/good_simple_golden_config.yml