Sha256: ce9bcf6d3fb5999e6f7f25d6eceec744c1fc0a69ac149e73500fb59c419b38dd

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

require_relative '../base_generator'
module Howitzer
  # This class responsible for configuration files generation
  class ConfigGenerator < BaseGenerator
    def manifest
      { files:
        [
          { source: 'boot.rb', destination: 'config/boot.rb' },
          { source: 'custom.yml', destination: 'config/custom.yml' },
          { source: 'capybara.rb', destination: 'config/capybara.rb' },
          { source: 'default.yml', destination: 'config/default.yml' },
          { source: 'drivers/browserstack.rb', destination: 'config/drivers/browserstack.rb' },
          { source: 'drivers/crossbrowsertesting.rb', destination: 'config/drivers/crossbrowsertesting.rb' },
          { source: 'drivers/headless_chrome.rb', destination: 'config/drivers/headless_chrome.rb' },
          { source: 'drivers/headless_firefox.rb', destination: 'config/drivers/headless_firefox.rb' },
          { source: 'drivers/sauce.rb', destination: 'config/drivers/sauce.rb' },
          { source: 'drivers/selenium.rb', destination: 'config/drivers/selenium.rb' },
          { source: 'drivers/selenium_grid.rb', destination: 'config/drivers/selenium_grid.rb' },
          { source: 'drivers/testingbot.rb', destination: 'config/drivers/testingbot.rb' }
        ] }
    end

    protected

    def banner
      <<-MSG
  * Config files generation ...
      MSG
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
howitzer-2.3.0 generators/config/config_generator.rb