Class: FigNewton::Commands::Init
- Inherits:
-
Object
- Object
- FigNewton::Commands::Init
- Defined in:
- lib/fig-newton/commands/init.rb
Instance Method Summary collapse
-
#initialize(stack_name, config_dir) ⇒ Init
constructor
A new instance of Init.
- #run(forced = false) ⇒ Object
Constructor Details
#initialize(stack_name, config_dir) ⇒ Init
Returns a new instance of Init.
6 7 8 9 10 |
# File 'lib/fig-newton/commands/init.rb', line 6 def initialize(stack_name, config_dir) @stack_name = stack_name @config_dir = config_dir @yaml = nil end |
Instance Method Details
#run(forced = false) ⇒ Object
12 13 14 15 |
# File 'lib/fig-newton/commands/init.rb', line 12 def run(forced = false) generate_yaml write_yaml(forced) end |