topo-provision 0.0.1 → 0.0.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.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/topo/provision/generators/node_group.rb +2 -2
- data/lib/topo/provision/version.rb +1 -1
- data/lib/topo/utils/output.rb +4 -2
- data/lib/topo/utils/parsegen.rb +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 427170301f0d1b3428fc14b1757ff5147c789b12
|
4
|
+
data.tar.gz: ff36ee889f399b95dee5ddb18fb02f27b1d77257
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bd5b358e295d739e6590a56200694e122bc693d6e678bfe2d6dc53ccc6bc48ef6540a3b5166c438df8ecea93ba203bd816e5798b6a8fef25687acc0c70557d2
|
7
|
+
data.tar.gz: 333c066de3b2b4856a311e5e3067b6e3d7c5bb316ad0626134faf840978a982320f7471694dd51fdf882aaeb3b2dd4a2578aef113b7b2481f619ee60548f21d6
|
data/README.md
CHANGED
@@ -63,6 +63,10 @@ The Topology Generator `Topo::Provision::TopologyGenerator` is the top-level gen
|
|
63
63
|
driver generators and generates a resource graph based on topo_ref dependencies, that it traverses in either
|
64
64
|
a forward or reverse direction, depending on the actions.
|
65
65
|
|
66
|
+
### Installation
|
67
|
+
|
68
|
+
gem install topo-provision
|
69
|
+
|
66
70
|
### Converters
|
67
71
|
|
68
72
|
Converters accept a format other than topology JSON, and convert it to
|
@@ -54,7 +54,7 @@ module Topo
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def undeploy()
|
57
|
-
batch_action(:
|
57
|
+
batch_action(:destroy)
|
58
58
|
end
|
59
59
|
|
60
60
|
def stop()
|
@@ -64,7 +64,7 @@ module Topo
|
|
64
64
|
def batch_action(action)
|
65
65
|
machine_names = []
|
66
66
|
1.upto @size do |i|
|
67
|
-
machine_names << "#{name}#{
|
67
|
+
machine_names << "#{name}#{i}"
|
68
68
|
end
|
69
69
|
puts(template("action").result(binding))
|
70
70
|
end
|
data/lib/topo/utils/output.rb
CHANGED
@@ -16,6 +16,8 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
+
require 'stringio'
|
20
|
+
|
19
21
|
|
20
22
|
module Topo
|
21
23
|
module Output
|
@@ -25,7 +27,7 @@ module Topo
|
|
25
27
|
$stdout.string
|
26
28
|
ensure
|
27
29
|
# Restore the previous value of stdout
|
28
|
-
$stdout = previous_stdout
|
29
|
-
|
30
|
+
$stdout = previous_stdout || STDOUT
|
31
|
+
end
|
30
32
|
end
|
31
33
|
end
|
data/lib/topo/utils/parsegen.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: topo-provision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- christine_draper
|
@@ -14,16 +14,16 @@ dependencies:
|
|
14
14
|
name: mixlib-cli
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,7 +98,7 @@ files:
|
|
98
98
|
- lib/topo/topology.rb
|
99
99
|
- lib/topo/utils/output.rb
|
100
100
|
- lib/topo/utils/parsegen.rb
|
101
|
-
homepage:
|
101
|
+
homepage: https://github.com/christinedraper/topo-provision
|
102
102
|
licenses:
|
103
103
|
- Apache License (2.0)
|
104
104
|
metadata: {}
|