class Devtools::Project

The project devtools supports

Constants

CONFIGS

Attributes

spec_root[R]

The spec root

@return [Pathname]

@api private

Public Class Methods

new(root) click to toggle source

Initialize object

@param [Pathname] root

@return [undefined]

@api private

Calls superclass method
# File lib/devtools/project.rb, line 35
def initialize(root)
  super(root)

  initialize_environment
  initialize_configs
end

Public Instance Methods

init_rspec() click to toggle source

Init rspec

@return [self]

@api private

# File lib/devtools/project.rb, line 47
def init_rspec
  Initializer::Rspec.call(self)
  self
end

Private Instance Methods

initialize_configs() click to toggle source

Initialize configs

@return [undefined]

@api private

# File lib/devtools/project.rb, line 70
def initialize_configs
  config_dir = root.join(DEFAULT_CONFIG_DIR_NAME)

  CONFIGS.each do |name, klass|
    instance_variable_set(:"@#{name}", klass.new(config_dir))
  end
end
initialize_environment() click to toggle source

Initialize environment

@return [undefined]

@api private

# File lib/devtools/project.rb, line 60
def initialize_environment
  @spec_root = root.join(SPEC_DIRECTORY_NAME)
end