Class: Lono::Seed
- Inherits:
-
AbstractBase
- Object
- AbstractBase
- Lono::Seed
- Defined in:
- lib/lono/seed/base.rb,
lib/lono/seed.rb,
lib/lono/seed/service_role.rb
Overview
Subclasses should implement:
variables - Returns String with content of varibles files.
setup - Hook to do extra things like create IAM service roles.
finish - Finish hook after config files have been created.
Note there is no params method to hook. The Base class handles params well.
Defined Under Namespace
Modules: ServiceRole Classes: Base, Configs
Instance Method Summary collapse
Methods inherited from AbstractBase
#initialize, #reinitialize, #template_path
Methods included from Blueprint::Root
#find_blueprint_root, #set_blueprint_root
Constructor Details
This class inherits a constructor from Lono::AbstractBase
Instance Method Details
#create ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/lono/seed.rb', line 3 def create puts "Creating starter config files for #{@blueprint}" configs_class = load_configs_class # ::Configs or Lono::Seed::Base configs = configs_class.new() # The Configs class implements: variables configs.run # setup the instance variables end |