Sha256: b9e8049fc7d0cae4259af42ae6c9659f6e5a32131fe455c1e6522a1ae74e0d09

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

class CrossStubGenerator < Rails::Generator::Base

  def manifest
    record do |m|
      m.file 'config/initializers/cross-stub.rb', 'config/initializers/cross-stub.rb'
      m.file 'features/support/cross-stub.rb', 'features/support/cross-stub.rb'
      m.gsub_file 'config/environments/cucumber.rb', /\z/, "config.gem 'cross-stub', :lib => false, :version => '>=0.2.4' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cross-stub'))\n"
    end
  end

  protected

    def banner
     "Usage: #{$0} cross_stub"
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cross-stub-0.2.4 generators/cross_stub/cross_stub_generator.rb