Class: CommonGenerator
Instance Method Summary
collapse
Methods inherited from Generator
#android?, #args, #axe?, #cross_platform?, #cucumber?, #ios?, #mobile?, #rspec?, #selenium?, #selenium_based?, #single_platform?, source_paths, #visual?, #watir?, #web?
Instance Method Details
#create_allure_folder ⇒ Object
36
37
38
|
# File 'lib/generators/common_generator.rb', line 36
def create_allure_folder
empty_directory "#{name}/allure-results"
end
|
#generate_config_file ⇒ Object
10
11
12
13
14
|
# File 'lib/generators/common_generator.rb', line 10
def generate_config_file
return if single_platform?
template('common/config.tt', "#{name}/config/config.yml")
end
|
#generate_gemfile ⇒ Object
20
21
22
|
# File 'lib/generators/common_generator.rb', line 20
def generate_gemfile
template('common/gemfile.tt', "#{name}/Gemfile")
end
|
#generate_gitignore_file ⇒ Object
32
33
34
|
# File 'lib/generators/common_generator.rb', line 32
def generate_gitignore_file
template('common/git_ignore.tt', "#{name}/.gitignore")
end
|
#generate_rake_file ⇒ Object
16
17
18
|
# File 'lib/generators/common_generator.rb', line 16
def generate_rake_file
template('common/rakefile.tt', "#{name}/Rakefile")
end
|
#generate_readme_file ⇒ Object
6
7
8
|
# File 'lib/generators/common_generator.rb', line 6
def generate_readme_file
template('common/read_me.tt', "#{name}/Readme.md")
end
|
#generate_reek_file ⇒ Object
24
25
26
|
# File 'lib/generators/common_generator.rb', line 24
def generate_reek_file
template('common/reek.tt', "#{name}/.reek.yml")
end
|
#generate_rubocop_file ⇒ Object
28
29
30
|
# File 'lib/generators/common_generator.rb', line 28
def generate_rubocop_file
template('common/rubocop.tt', "#{name}/.rubocop.yml")
end
|