Class: Cartos::Generators::Config
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Cartos::Generators::Config
- Includes:
- Thor::Actions
- Defined in:
- lib/cartos/generators/config.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/cartos/generators/config.rb', line 8 def self.source_root File.dirname(__FILE__) + "/config" end |
Instance Method Details
#copy_config ⇒ Object
12 13 14 |
# File 'lib/cartos/generators/config.rb', line 12 def copy_config template("config.yml", "#{File. "~"}/.cartos.yml") end |