Sha256: 5b46dbc2a588e7bb742488d60dfb54e242e37f7231de1c3dec07791658bb9ed2

Contents?: true

Size: 640 Bytes

Versions: 14

Compression:

Stored size: 640 Bytes

Contents

module CypressOnRails
  class UpdateGenerator < Rails::Generators::Base
    class_option :cypress_folder, type: :string, default: 'spec/cypress'
    source_root File.expand_path('../templates', __FILE__)

    def update_generated_files
      template "config/initializers/cypress_on_rails.rb.erb", "config/initializers/cypress_on_rails.rb"
      copy_file "spec/cypress/cypress_helper.rb", "#{options.cypress_folder}/cypress_helper.rb"
      copy_file "spec/cypress/support/on-rails.js", "#{options.cypress_folder}/support/on-rails.js"
      directory 'spec/cypress/app_commands', "#{options.cypress_folder}/app_commands"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cypress-on-rails-1.13.1 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.13.0 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.12.1 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.12.0 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.11.0 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.10.1 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.9.1 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.9.0 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.8.1 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.8.0 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.7.0 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.6.0 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.5.1 lib/generators/cypress_on_rails/update_generator.rb
cypress-on-rails-1.5.0 lib/generators/cypress_on_rails/update_generator.rb