Class: Nodectl::Generators::Init
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Nodectl::Generators::Init
- Includes:
- Thor::Actions
- Defined in:
- lib/nodectl/generators/init.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.destination_root ⇒ Object
10 11 12 |
# File 'lib/nodectl/generators/init.rb', line 10 def self.destination_root host_path end |
.source_root ⇒ Object
6 7 8 |
# File 'lib/nodectl/generators/init.rb', line 6 def self.source_root File.join(File.dirname(__FILE__), "templates", "init") end |
Instance Method Details
#copy_template ⇒ Object
14 15 16 |
# File 'lib/nodectl/generators/init.rb', line 14 def copy_template directory "./", host_path end |