Class: CloudTest::Generators::Config

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



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_configObject



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_groupObject



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