vmc 0.5.0.beta.10 → 0.5.0.beta.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,7 +53,6 @@ module VMC::App
53
53
  map_url(app)
54
54
  create_services(app)
55
55
  bind_services(app)
56
- app = filter(:push_app, app)
57
56
  upload_app(app, path)
58
57
  start_app(app)
59
58
  end
@@ -72,6 +71,8 @@ module VMC::App
72
71
  end
73
72
 
74
73
  def upload_app(app, path)
74
+ app = filter(:push_app, app)
75
+
75
76
  with_progress("Uploading #{c(app.name, :name)}") do
76
77
  app.upload(path)
77
78
  end
data/lib/vmc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.5.0.beta.10".freeze
2
+ VERSION = "0.5.0.beta.11".freeze
3
3
  end
@@ -63,6 +63,11 @@ describe VMC::App::Push do
63
63
  end
64
64
  end
65
65
 
66
+ it 'triggers the :push_app filter' do
67
+ mock(push).filter(:push_app, app) { app }
68
+ subject
69
+ end
70
+
66
71
  it 'uploads the app' do
67
72
  mock(app).upload(path)
68
73
  subject
@@ -204,10 +209,10 @@ describe VMC::App::Push do
204
209
  %w{p100 P100 P200}.each do |plan|
205
210
  context "when the given plan is #{plan}" do
206
211
  let(:inputs) { { :plan => plan } }
207
-
212
+
208
213
  it 'sets production to true' do
209
214
  stub(push).line(anything)
210
- mock(app).update!
215
+ mock(app).update!
211
216
  expect { subject }.to change { app.production }.from(false).to(true)
212
217
  end
213
218
 
@@ -225,10 +230,10 @@ describe VMC::App::Push do
225
230
  let(:app) { fake(:app, :production => true) }
226
231
 
227
232
  let(:inputs) { { :plan => plan } }
228
-
233
+
229
234
  it 'sets production to false' do
230
235
  stub(push).line(anything)
231
- mock(app).update!
236
+ mock(app).update!
232
237
  expect { subject }.to change { app.production }.from(true).to(false)
233
238
  end
234
239
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmc
3
3
  version: !ruby/object:Gem::Version
4
- hash: -3788488616
4
+ hash: 2194987339
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
9
  - 0
10
10
  - beta
11
- - 10
12
- version: 0.5.0.beta.10
11
+ - 11
12
+ version: 0.5.0.beta.11
13
13
  platform: ruby
14
14
  authors:
15
15
  - Cloud Foundry Team
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2013-02-05 00:00:00 Z
21
+ date: 2013-02-06 00:00:00 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -56,12 +56,11 @@ dependencies:
56
56
  requirements:
57
57
  - - ~>
58
58
  - !ruby/object:Gem::Version
59
- hash: 11
59
+ hash: 1
60
60
  segments:
61
61
  - 0
62
62
  - 5
63
- - 0
64
- version: 0.5.0
63
+ version: "0.5"
65
64
  prerelease: false
66
65
  type: :runtime
67
66
  name: interact
@@ -72,12 +71,11 @@ dependencies:
72
71
  requirements:
73
72
  - - ~>
74
73
  - !ruby/object:Gem::Version
75
- hash: 39
74
+ hash: 1
76
75
  segments:
77
76
  - 0
78
- - 4
79
- - 20
80
- version: 0.4.20
77
+ - 5
78
+ version: "0.5"
81
79
  prerelease: false
82
80
  type: :runtime
83
81
  name: cfoundry
@@ -88,12 +86,11 @@ dependencies:
88
86
  requirements:
89
87
  - - ~>
90
88
  - !ruby/object:Gem::Version
91
- hash: 27
89
+ hash: 11
92
90
  segments:
93
91
  - 0
94
92
  - 0
95
- - 2
96
- version: 0.0.2
93
+ version: "0.0"
97
94
  prerelease: false
98
95
  type: :runtime
99
96
  name: clouseau
@@ -104,12 +101,11 @@ dependencies:
104
101
  requirements:
105
102
  - - ~>
106
103
  - !ruby/object:Gem::Version
107
- hash: 11
104
+ hash: 1
108
105
  segments:
109
106
  - 0
110
107
  - 5
111
- - 0
112
- version: 0.5.0
108
+ version: "0.5"
113
109
  prerelease: false
114
110
  type: :runtime
115
111
  name: mothership
@@ -120,12 +116,11 @@ dependencies:
120
116
  requirements:
121
117
  - - ~>
122
118
  - !ruby/object:Gem::Version
123
- hash: 11
119
+ hash: 7
124
120
  segments:
125
121
  - 0
126
- - 5
127
- - 0
128
- version: 0.5.0
122
+ - 6
123
+ version: "0.6"
129
124
  prerelease: false
130
125
  type: :runtime
131
126
  name: manifests-vmc-plugin
@@ -136,12 +131,11 @@ dependencies:
136
131
  requirements:
137
132
  - - ~>
138
133
  - !ruby/object:Gem::Version
139
- hash: 13
134
+ hash: 15
140
135
  segments:
141
136
  - 0
142
- - 1
143
- - 11
144
- version: 0.1.11
137
+ - 2
138
+ version: "0.2"
145
139
  prerelease: false
146
140
  type: :runtime
147
141
  name: tunnel-vmc-plugin