Class: Duple::CLI::Init

Inherits:
Thor::Group
  • Object
show all
Includes:
Helpers
Defined in:
lib/duple/cli/init.rb

Overview

Usage:

duple init

Options:

-c, [--config=CONFIG]  # The location of the config file.

Generates a sample configuration file.

Instance Method Summary collapse

Methods included from Helpers

included

Instance Method Details

#create_sample_configObject



16
17
18
19
20
# File 'lib/duple/cli/init.rb', line 16

def create_sample_config
  config_path = app_config_path(false)
  empty_directory(File.dirname(config_path))
  copy_file('templates/config/duple.yml', config_path)
end