stacco 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/stacco +11 -0
- data/stacco.gemspec +1 -1
- metadata +1 -1
data/bin/stacco
CHANGED
@@ -116,6 +116,17 @@ when :up
|
|
116
116
|
when :down
|
117
117
|
stack.down!
|
118
118
|
|
119
|
+
when :export
|
120
|
+
puts stack.config.to_yaml
|
121
|
+
|
122
|
+
when :edit
|
123
|
+
editor = ENV['EDITOR'] || 'vi'
|
124
|
+
tmp_stackdef_path = Pathname.new("/tmp/stacco-stack.#{stack.name}.#{rand(32 ** 16).to_s(32)}")
|
125
|
+
tmp_stackdef_path.open('w'){ |f| f.write(stack.config.to_yaml) }
|
126
|
+
Kernel.system(editor, tmp_stackdef_path.to_s)
|
127
|
+
stack.config = YAML.load(tmp_stackdef_path.read)
|
128
|
+
|
129
|
+
|
119
130
|
when :"bake-template"
|
120
131
|
puts stack.cloudformation_template
|
121
132
|
|
data/stacco.gemspec
CHANGED