class RSpec::Core::ProjectInitializer

@private Generates conventional files for an RSpec project.

Constants

DOT_RSPEC_FILE
SPEC_HELPER_FILE

Attributes

Public Class Methods

# File rspec-core/lib/rspec/core/project_initializer.rb, line 13
def initialize(opts={})
  @destination = opts.fetch(:destination, Dir.getwd)
  @stream = opts.fetch(:report_stream, $stdout)
  @template_path = opts.fetch(:template_path) do
    File.expand_path("../project_initializer", __FILE__)
  end
end

Public Instance Methods

# File rspec-core/lib/rspec/core/project_initializer.rb, line 21
def run
  copy_template DOT_RSPEC_FILE
  copy_template SPEC_HELPER_FILE
end