Class: Ober::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/ober/application.rb

Overview

The main application class, presents all operations as methods and has no connection to the CLI interface.

Instance Method Summary collapse

Instance Method Details

#install(env) ⇒ Object



10
11
12
13
14
# File 'lib/ober/application.rb', line 10

def install env
  config = read_configuration
  environment = config.environment(env)
  Installer.new(environment).install
end

#read_configurationObject



16
17
18
19
# File 'lib/ober/application.rb', line 16

def read_configuration
  source = File.read('ober_menu.rb')
  Configuration.parse(source, 'ober_menu.rb')
end