Module: Kibo

Extended by:
Kibo, System
Included in:
Kibo
Defined in:
lib/kibo.rb,
lib/kibo.rb,
lib/kibo/system.rb,
lib/kibo/version.rb

Defined Under Namespace

Modules: CommandLine, Commands, Helpers, Heroku, System Classes: Config, Instance

Constant Summary collapse

VERSION =
"0.4.8"

Instance Method Summary collapse

Methods included from System

git, git?, heroku, sys, sys!

Instance Method Details

#binaryObject



34
35
36
# File 'lib/kibo.rb', line 34

def binary
  File.join(File.dirname(__FILE__), "..", "bin", "kibo")
end

#configObject



15
16
17
# File 'lib/kibo.rb', line 15

def config
  @config ||= Config.new(CommandLine.config, CommandLine.environment)
end

#environmentObject



19
20
21
# File 'lib/kibo.rb', line 19

def environment
  Kibo.config.environment
end

#namespaceObject



23
24
25
# File 'lib/kibo.rb', line 23

def namespace
  Kibo.config.heroku.namespace
end

#runObject



27
28
29
30
31
32
# File 'lib/kibo.rb', line 27

def run
  Commands.send CommandLine.subcommand
rescue RuntimeError
  UI.error $!.to_s 
  exit 1
end