Class: Command::Generator
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Command::Generator
- Includes:
- Thor::Actions
- Defined in:
- lib/command/generate.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
11 12 13 |
# File 'lib/command/generate.rb', line 11 def self.source_root File.("../", __dir__) end |
Instance Method Details
#copy_files ⇒ Object
7 8 9 |
# File 'lib/command/generate.rb', line 7 def copy_files directory("generator_templates", ".controlplane", verbose: ENV.fetch("HIDE_COMMAND_OUTPUT", nil) != "true") end |