Sha256: 67d73169a72e9e5b45e307a0c81c34894053e1ff3ede4c1116dc7eba6769f057
Contents?: true
Size: 988 Bytes
Versions: 1
Compression:
Stored size: 988 Bytes
Contents
require 'ruby_terraform/version' require 'ruby_terraform/commands' module RubyTerraform class << self attr_accessor :configuration def configure @configuration ||= Configuration.new yield(@configuration) end def reset! @configuration = nil end end module ClassMethods def clean(opts = {}) Commands::Clean.new.execute(opts) end def get(opts = {}) Commands::Get.new.execute(opts) end def apply(opts = {}) Commands::Apply.new.execute(opts) end def destroy(opts = {}) Commands::Destroy.new.execute(opts) end def remote_config(opts = {}) Commands::RemoteConfig.new.execute(opts) end def output(opts = {}) Commands::Output.new.execute(opts) end end extend ClassMethods def self.included( other ) other.extend( ClassMethods ) end class Configuration attr_accessor :binary def initialize @binary = 'terraform' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-terraform-0.4.0 | lib/ruby_terraform.rb |