Sha256: 9af2b1dda3404d263839044f2ffbda9c72b6e681a8673088c03492ddfdd8bb96
Contents?: true
Size: 828 Bytes
Versions: 3
Compression:
Stored size: 828 Bytes
Contents
# frozen_string_literal: true require_relative 'generator' class CommonGenerator < Generator def generate_readme_file template('common/read_me.tt', "#{name}/Readme.md") end def generate_config_file return if mobile? template('common/config.tt', "#{name}/config/config.yml") end def generate_rake_file template('common/rakefile.tt', "#{name}/Rakefile") end def generate_gemfile template('common/gemfile.tt', "#{name}/Gemfile") end def generate_reek_file template('common/reek.tt', "#{name}/.reek.yml") end def generate_rubocop_file template('common/rubocop.tt', "#{name}/.rubocop.yml") end def create_allure_folder empty_directory "#{name}/allure-results" end def create_screenshots_folder empty_directory "#{name}/allure-results/screenshots" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_raider-0.7.4 | lib/generators/common_generator.rb |
ruby_raider-0.7.3 | lib/generators/common_generator.rb |
ruby_raider-0.7.2 | lib/generators/common_generator.rb |