Class: Stackster::StackCreater
- Inherits:
-
Object
- Object
- Stackster::StackCreater
- Defined in:
- lib/stackster/stack/stack_creater.rb
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(args) ⇒ StackCreater
constructor
A new instance of StackCreater.
Constructor Details
#initialize(args) ⇒ StackCreater
Returns a new instance of StackCreater.
6 7 8 9 10 11 12 |
# File 'lib/stackster/stack/stack_creater.rb', line 6 def initialize(args) @config = args[:config] @logger = @config.logger @entry = args[:entry] @name = args[:name] @template = read_template_from_file args[:template_file] end |
Instance Method Details
#create ⇒ Object
14 15 16 17 18 19 |
# File 'lib/stackster/stack/stack_creater.rb', line 14 def create @logger.info "Creating Cloud Formation stack #{@name}." cloud_formation.create :name => @name, :parameters => read_parameters_from_entry, :template => @template end |