Class: RailChaser::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rail_chaser/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
# File 'lib/rail_chaser/configuration.rb', line 5

def initialize
  @skip_gem = true
  @skip_ruby_core = true
  @skip_spec = true
  @db_path = 'spec.db'
end

Instance Attribute Details

#db_pathObject

Returns the value of attribute db_path.



3
4
5
# File 'lib/rail_chaser/configuration.rb', line 3

def db_path
  @db_path
end

#skip_gemObject

Returns the value of attribute skip_gem.



3
4
5
# File 'lib/rail_chaser/configuration.rb', line 3

def skip_gem
  @skip_gem
end

#skip_ruby_coreObject

Returns the value of attribute skip_ruby_core.



3
4
5
# File 'lib/rail_chaser/configuration.rb', line 3

def skip_ruby_core
  @skip_ruby_core
end

#skip_specObject

Returns the value of attribute skip_spec.



3
4
5
# File 'lib/rail_chaser/configuration.rb', line 3

def skip_spec
  @skip_spec
end

Instance Method Details

#example_collection_optionsObject



12
13
14
15
16
17
18
# File 'lib/rail_chaser/configuration.rb', line 12

def example_collection_options
  {
    :skip_gem => @skip_gem,
    :skip_ruby_core => @skip_ruby_core,
    :skip_spec => @skip_spec
  }
end

#storage_optionsObject



20
21
22
23
24
# File 'lib/rail_chaser/configuration.rb', line 20

def storage_options
  {
    :db_path => @db_path
  }
end