Class: Sunzi::Vps::Init
- Inherits:
-
Object
- Object
- Sunzi::Vps::Init
- Includes:
- Actions::Delegate
- Defined in:
- lib/sunzi/vps/init.rb
Instance Method Summary collapse
Instance Method Details
#run(provider) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/sunzi/vps/init.rb', line 8 def run(provider) config_path = "#{provider}/#{provider}.yml" return if File.exist? config_path empty_directory "#{provider}/instances" template "templates/#{provider}.yml", config_path, context: binding exit_with "Now go ahead and edit #{provider}.yml" end |