stacco 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/stacco +11 -0
  2. data/stacco.gemspec +1 -1
  3. 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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'stacco'
3
- s.version = '0.1.4'
3
+ s.version = '0.1.5'
4
4
  s.licenses = ['MIT']
5
5
  s.summary = "Stack manipulator"
6
6
  s.description = "AWS CloudFromation stack manipulation toolsuite"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stacco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: