manifests-vmc-plugin 0.4.15 → 0.4.16
Sign up to get free protection for your applications and to get access to all the features.
data/lib/manifests-vmc-plugin.rb
CHANGED
@@ -61,7 +61,7 @@ module VMCManifests
|
|
61
61
|
client_target
|
62
62
|
|
63
63
|
when "target-base"
|
64
|
-
|
64
|
+
target_base
|
65
65
|
|
66
66
|
when "random-word"
|
67
67
|
sprintf("%04x", rand(0x0100000))
|
@@ -343,4 +343,8 @@ module VMCManifests
|
|
343
343
|
:instance => i
|
344
344
|
end
|
345
345
|
end
|
346
|
+
|
347
|
+
def target_base
|
348
|
+
client_target.sub(/^[^\.]+\./, "")
|
349
|
+
end
|
346
350
|
end
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'manifests-vmc-plugin'
|
3
|
+
|
4
|
+
describe VMCManifests do
|
5
|
+
let(:cmd) do
|
6
|
+
manifest = Object.new
|
7
|
+
manifest.extend VMCManifests
|
8
|
+
manifest
|
9
|
+
end
|
10
|
+
|
11
|
+
describe '#find_apps' do
|
12
|
+
subject { cmd.find_apps(nil) }
|
13
|
+
|
14
|
+
context 'when there is no manifest file' do
|
15
|
+
before { stub(cmd).manifest { nil } }
|
16
|
+
it { should eq [] }
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manifests-vmc-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 16
|
10
|
+
version: 0.4.16
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Suraci
|
@@ -97,7 +97,8 @@ files:
|
|
97
97
|
- lib/manifests-vmc-plugin/plugin.rb
|
98
98
|
- lib/manifests-vmc-plugin/version.rb
|
99
99
|
- lib/manifests-vmc-plugin.rb
|
100
|
-
- spec/normalizer_spec.rb
|
100
|
+
- spec/loader/normalizer_spec.rb
|
101
|
+
- spec/manifests-vmc-plugin_spec.rb
|
101
102
|
- spec/spec_helper.rb
|
102
103
|
homepage: http://cloudfoundry.com/
|
103
104
|
licenses: []
|
@@ -133,5 +134,6 @@ signing_key:
|
|
133
134
|
specification_version: 3
|
134
135
|
summary: Cloud Foundry automation via manifest documents.
|
135
136
|
test_files:
|
136
|
-
- spec/normalizer_spec.rb
|
137
|
+
- spec/loader/normalizer_spec.rb
|
138
|
+
- spec/manifests-vmc-plugin_spec.rb
|
137
139
|
- spec/spec_helper.rb
|