Parent

Methods

Class/Module Index [+]

Quicksearch

RSpec::Core::ProjectInitializer

@private Generates conventional files for an rspec project

Attributes

destination[R]
stream[R]
template_path[R]

Public Class Methods

new(opts = {}) click to toggle source
# File lib/rspec/core/project_initializer.rb, line 11
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

run() click to toggle source
# File lib/rspec/core/project_initializer.rb, line 19
def run
  copy_template DOT_RSPEC_FILE
  copy_template SPEC_HELPER_FILE
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.