vmc 0.4.0.beta.15 → 0.4.0.beta.16
Sign up to get free protection for your applications and to get access to all the features.
- data/vmc-ng/lib/vmc/cli/app.rb +4 -4
- data/vmc-ng/lib/vmc/cli/start.rb +8 -4
- data/vmc-ng/lib/vmc/version.rb +1 -1
- metadata +6 -6
data/vmc-ng/lib/vmc/cli/app.rb
CHANGED
@@ -143,7 +143,7 @@ module VMC
|
|
143
143
|
else
|
144
144
|
detected_names = detected.collect(&:name).sort
|
145
145
|
framework_name =
|
146
|
-
input[:framework, detected_names + ["other"], default]
|
146
|
+
input[:framework, detected_names + ["other"], default && default.name]
|
147
147
|
|
148
148
|
if framework_name == "other"
|
149
149
|
input.forget(:framework)
|
@@ -411,7 +411,7 @@ module VMC
|
|
411
411
|
ask("Memory Limit", :choices => MEM_CHOICES,
|
412
412
|
:default => human_size(default * 1024 * 1024, 0))
|
413
413
|
}
|
414
|
-
input :restart, :default => true,
|
414
|
+
input :restart, :type => :boolean, :default => true,
|
415
415
|
:desc => "Restart app after updating?"
|
416
416
|
def scale(input)
|
417
417
|
name = input[:name]
|
@@ -673,7 +673,7 @@ module VMC
|
|
673
673
|
:desc => "Environment variable name"
|
674
674
|
input :value, :argument => :optional,
|
675
675
|
:desc => "Environment variable value"
|
676
|
-
input :restart, :default => true,
|
676
|
+
input :restart, :type => :boolean, :default => true,
|
677
677
|
:desc => "Restart app after updating?"
|
678
678
|
def set_env(input)
|
679
679
|
appname = input[:name]
|
@@ -715,7 +715,7 @@ module VMC
|
|
715
715
|
:desc => "Application to remove the variable from"
|
716
716
|
input :var, :argument => true,
|
717
717
|
:desc => "Environment variable name"
|
718
|
-
input :restart, :default => true,
|
718
|
+
input :restart, :type => :boolean, :default => true,
|
719
719
|
:desc => "Restart app after updating?"
|
720
720
|
def delete_env(input)
|
721
721
|
appname = input[:name]
|
data/vmc-ng/lib/vmc/cli/start.rb
CHANGED
@@ -113,8 +113,12 @@ module VMC
|
|
113
113
|
if !input.given?(:url) && !input.given?(:organization) &&
|
114
114
|
!input.given?(:space)
|
115
115
|
display_target
|
116
|
-
|
117
|
-
|
116
|
+
|
117
|
+
if v2? && client.current_organization && client.current_space
|
118
|
+
puts "Organization: #{c(client.current_organization.name, :name)}"
|
119
|
+
puts "Space: #{c(client.current_space.name, :name)}"
|
120
|
+
end
|
121
|
+
|
118
122
|
return
|
119
123
|
end
|
120
124
|
|
@@ -353,7 +357,7 @@ module VMC
|
|
353
357
|
|
354
358
|
def select_org_and_space(input, info)
|
355
359
|
if input.given?(:organization) || !org_valid?(info[:organization])
|
356
|
-
orgs = client.
|
360
|
+
orgs = client.organizations
|
357
361
|
fail "No organizations!" if orgs.empty?
|
358
362
|
|
359
363
|
if orgs.size == 1 && !input.given?(:organization)
|
@@ -372,7 +376,7 @@ module VMC
|
|
372
376
|
# switching org probably means switching space
|
373
377
|
if input.given?(:organization) || input.given?(:space) || \
|
374
378
|
!space_valid?(info[:space])
|
375
|
-
spaces = client.
|
379
|
+
spaces = client.spaces.select do |s|
|
376
380
|
s.organization.id == org.id
|
377
381
|
end
|
378
382
|
|
data/vmc-ng/lib/vmc/version.rb
CHANGED
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:
|
4
|
+
hash: 62196419
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.4.0.beta.
|
11
|
+
- 16
|
12
|
+
version: 0.4.0.beta.16
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- VMware
|
@@ -249,12 +249,12 @@ dependencies:
|
|
249
249
|
requirements:
|
250
250
|
- - ~>
|
251
251
|
- !ruby/object:Gem::Version
|
252
|
-
hash:
|
252
|
+
hash: 23
|
253
253
|
segments:
|
254
254
|
- 0
|
255
255
|
- 3
|
256
|
-
-
|
257
|
-
version: 0.3.
|
256
|
+
- 2
|
257
|
+
version: 0.3.2
|
258
258
|
type: :runtime
|
259
259
|
version_requirements: *id014
|
260
260
|
- !ruby/object:Gem::Dependency
|