Class: CloudTest::Generators::Config
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- CloudTest::Generators::Config
- Includes:
- Thor::Actions
- Defined in:
- lib/cloud_test/generators/config.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
7 8 9 |
# File 'lib/cloud_test/generators/config.rb', line 7 def self.source_root File.dirname(__FILE__) + "/configs" end |
Instance Method Details
#copy_config ⇒ Object
16 17 18 |
# File 'lib/cloud_test/generators/config.rb', line 16 def copy_config template("sample.cloud_test.#{provider}.yml", "config/cloud_test.yml") end |
#create_group ⇒ Object
11 12 13 14 15 |
# File 'lib/cloud_test/generators/config.rb', line 11 def create_group if !Dir.exist?('config') empty_directory('config') end end |