class Central::Devtools::Project

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/central/devtools/project.rb, line 38
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/central/devtools/project.rb, line 50
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/central/devtools/project.rb, line 71
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/central/devtools/project.rb, line 62
def initialize_environment
  @spec_root = root.join(SPEC_DIRECTORY_NAME)
end