Class: Kite::Core

Inherits:
Base
  • Object
show all
Includes:
Helpers
Defined in:
lib/kite/core.rb

Instance Method Summary collapse

Methods included from Helpers

#check_cloud_config, #cloud_path, #cloud_valid?, #parse_cloud_config, #run!

Methods inherited from Base

exit_on_failure?, source_root

Instance Method Details

#new(cloud_name) ⇒ Object

Creates a cloud infrastructure skeleton with a given name



8
9
10
11
# File 'lib/kite/core.rb', line 8

def new(cloud_name)
  target = Kite::Cloud.new(self, cloud_name)
  target.prepare
end

#terraform(command, *args) ⇒ Object



24
25
26
# File 'lib/kite/core.rb', line 24

def terraform(command, *args)
  Kernel.exit Kite::Terraform.new(self, options).run(command, *args)
end

#versionObject

Return kite version



30
31
32
# File 'lib/kite/core.rb', line 30

def version
  say "v#{ Kite::VERSION }"
end