Class: Cartos::Generators::Config

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/cartos/generators/config.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
# File 'lib/cartos/generators/config.rb', line 8

def self.source_root
  File.dirname(__FILE__) + "/config"
end

Instance Method Details

#copy_configObject



12
13
14
# File 'lib/cartos/generators/config.rb', line 12

def copy_config
  template("config.yml", "#{File.expand_path "~"}/.cartos.yml")
end