lib/stackster/stack/stack_creater.rb in stackster-0.0.3 vs lib/stackster/stack/stack_creater.rb in stackster-0.0.4
- old
+ new
@@ -5,20 +5,20 @@
def initialize(args)
@config = args[:config]
@entry = args[:entry]
@name = args[:name]
- @template = read_template_from_file args[:template]
+ @template = read_template_from_file args[:template_file]
@cf = AWS::CloudFormation.new :config => @config
end
def read_template_from_file(template_file)
file = File.open template_file
file.read
end
def read_parameters_from_template
- t = JSON.parse(@template)
+ t = JSON.parse @template
t['Paramaters'].nil? ? t['Parameters'].keys : []
end
def read_parameters_from_entry
h = {}