Class: CloudTest::Generators::Support

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



6
7
8
# File 'lib/cloud_test/generators/cloud_test_env.rb', line 6

def self.source_root
  File.dirname(__FILE__) + "/configs"
end

Instance Method Details

#copy_configObject



15
16
17
# File 'lib/cloud_test/generators/cloud_test_env.rb', line 15

def copy_config
  template("sample.cloud_test.rb", "features/support/cloud_test.rb")
end

#create_groupObject



10
11
12
13
14
# File 'lib/cloud_test/generators/cloud_test_env.rb', line 10

def create_group
  if !Dir.exist?('features/support')
    empty_directory('features/support')
  end
end