Class: Wemux::Pair::Commands::CreateSampleConfig

Inherits:
Command
  • Object
show all
Defined in:
lib/wemux/pair/commands/create_sample_config.rb

Instance Method Summary collapse

Methods inherited from Command

#initialize, run

Constructor Details

This class inherits a constructor from Wemux::Pair::Commands::Command

Instance Method Details

#executeObject



9
10
11
12
13
# File 'lib/wemux/pair/commands/create_sample_config.rb', line 9

def execute
  return warn_config_exists if config_exist?
  copy_file(config_template, config_path)
  puts "Generated file at #{config_path}"
end