class Terrafying::Cli

Public Instance Methods

apply(path) click to toggle source
# File lib/terrafying/cli.rb, line 39
def apply(path)
  exit Config.new(path, options).apply
end
destroy(path) click to toggle source
# File lib/terrafying/cli.rb, line 45
def destroy(path)
  exit Config.new(path, options).destroy
end
graph(path) click to toggle source
# File lib/terrafying/cli.rb, line 28
def graph(path)
  exit Config.new(path, options).graph
end
import(path, addr, id) click to toggle source
# File lib/terrafying/cli.rb, line 70
def import(path, addr, id)
  exit Config.new(path, options).import(addr, id)
end
json(path) click to toggle source
# File lib/terrafying/cli.rb, line 50
def json(path)
  puts(Config.new(path, options).json)
end
list(path) click to toggle source
# File lib/terrafying/cli.rb, line 15
def list(path)
  puts "Defined resources:\n\n"
  Config.new(path, options).list.each do |name|
    puts name.to_s
  end
end
method_missing(*args) click to toggle source
# File lib/terrafying/cli.rb, line 74
def method_missing(*args)
  json(args[0].to_s)
end
plan(path) click to toggle source
# File lib/terrafying/cli.rb, line 23
def plan(path)
  exit Config.new(path, options).plan
end
show_state(path) click to toggle source
# File lib/terrafying/cli.rb, line 55
def show_state(path)
  puts(Config.new(path, options).show_state)
end
use_local_state(path) click to toggle source
# File lib/terrafying/cli.rb, line 65
def use_local_state(path)
  puts(Config.new(path, options).use_local_state)
end
use_remote_state(path) click to toggle source
# File lib/terrafying/cli.rb, line 60
def use_remote_state(path)
  puts(Config.new(path, options).use_remote_state)
end
validate(path) click to toggle source
# File lib/terrafying/cli.rb, line 33
def validate(path)
  exit Config.new(path, options).validate
end