class Umbrellify::Configuration

Public Class Methods

new(config_path) click to toggle source
# File lib/umbrellify/configuration.rb, line 5
def initialize(config_path)
  configuration = YAML.load_file(config_path)

  @umbrella_name = configuration["umbrella_target_name"]
  @main_target_name = configuration["main_target_name"]
  @managed_imports = configuration["managed_targets"]
  @project_path = configuration["project_path"]
  @source_path = configuration["source_path"]
  @substitute_managed_imports_only = configuration["substitute_managed_imports_only"]
end

Public Instance Methods

main_target_name() click to toggle source
# File lib/umbrellify/configuration.rb, line 22
def main_target_name
  @main_target_name
end
managed_imports() click to toggle source
# File lib/umbrellify/configuration.rb, line 26
def managed_imports
  @managed_imports
end
project_path() click to toggle source
# File lib/umbrellify/configuration.rb, line 30
def project_path
  @project_path
end
source_path() click to toggle source
# File lib/umbrellify/configuration.rb, line 34
def source_path
  @source_path
end
substitute_managed_imports_only() click to toggle source
# File lib/umbrellify/configuration.rb, line 38
def substitute_managed_imports_only
  @substitute_managed_imports_only
end
umbrella_name() click to toggle source

Getters

# File lib/umbrellify/configuration.rb, line 18
def umbrella_name
  @umbrella_name
end