Class: Sfn::Planner
- Inherits:
-
Object
- Object
- Sfn::Planner
- Defined in:
- lib/sfn/planner.rb,
lib/sfn/planner/aws.rb
Overview
Interface for generating plan report
Direct Known Subclasses
Defined Under Namespace
Classes: Aws
Constant Summary collapse
- RUNTIME_MODIFIED =
Value to flag runtime modification
'__MODIFIED_REFERENCE_VALUE__'
Instance Attribute Summary collapse
-
#arguments ⇒ Array<String>
readonly
CLI arguments.
- #config ⇒ Smash readonly
-
#options ⇒ Hash
readonly
Custom options.
-
#origin_stack ⇒ Miasma::Models::Orchestration::Stack
readonly
Existing remote stack.
- #ui ⇒ Bogo::Ui readonly
Instance Method Summary collapse
-
#generate_plan(template, parameters) ⇒ Hash
Generate update report.
-
#initialize(ui, config, arguments, stack, opts = {}) ⇒ self
constructor
Create a new planner instance.
Constructor Details
#initialize(ui, config, arguments, stack, opts = {}) ⇒ self
Create a new planner instance
32 33 34 35 36 37 38 |
# File 'lib/sfn/planner.rb', line 32 def initialize(ui, config, arguments, stack, opts={}) @ui = ui @config = config @arguments = arguments @origin_stack = stack @options = opts end |
Instance Attribute Details
#arguments ⇒ Array<String> (readonly)
Returns CLI arguments.
17 18 19 |
# File 'lib/sfn/planner.rb', line 17 def arguments @arguments end |
#config ⇒ Smash (readonly)
15 16 17 |
# File 'lib/sfn/planner.rb', line 15 def config @config end |
#options ⇒ Hash (readonly)
Returns custom options.
21 22 23 |
# File 'lib/sfn/planner.rb', line 21 def @options end |
#origin_stack ⇒ Miasma::Models::Orchestration::Stack (readonly)
Returns existing remote stack.
19 20 21 |
# File 'lib/sfn/planner.rb', line 19 def origin_stack @origin_stack end |
#ui ⇒ Bogo::Ui (readonly)
13 14 15 |
# File 'lib/sfn/planner.rb', line 13 def ui @ui end |
Instance Method Details
#generate_plan(template, parameters) ⇒ Hash
Generate update report
46 47 48 |
# File 'lib/sfn/planner.rb', line 46 def generate_plan(template, parameters) raise NotImplementedError end |