Module: RubyTerraform::ClassMethods
- Included in:
- RubyTerraform
- Defined in:
- lib/ruby_terraform.rb
Instance Method Summary collapse
- #apply(opts = {}) ⇒ Object
- #clean(opts = {}) ⇒ Object
- #destroy(opts = {}) ⇒ Object
- #get(opts = {}) ⇒ Object
- #init(opts = {}) ⇒ Object
- #output(opts = {}) ⇒ Object
- #output_from_remote(opts) ⇒ Object
- #plan(opts = {}) ⇒ Object
- #refresh(opts = {}) ⇒ Object
- #remote_config(opts = {}) ⇒ Object
- #validate(opts = {}) ⇒ Object
- #workspace(opts = {}) ⇒ Object
Instance Method Details
#apply(opts = {}) ⇒ Object
43 44 45 |
# File 'lib/ruby_terraform.rb', line 43 def apply(opts = {}) Commands::Apply.new.execute(opts) end |
#clean(opts = {}) ⇒ Object
23 24 25 |
# File 'lib/ruby_terraform.rb', line 23 def clean(opts = {}) Commands::Clean.new.execute(opts) end |
#destroy(opts = {}) ⇒ Object
47 48 49 |
# File 'lib/ruby_terraform.rb', line 47 def destroy(opts = {}) Commands::Destroy.new.execute(opts) end |
#get(opts = {}) ⇒ Object
31 32 33 |
# File 'lib/ruby_terraform.rb', line 31 def get(opts = {}) Commands::Get.new.execute(opts) end |
#init(opts = {}) ⇒ Object
27 28 29 |
# File 'lib/ruby_terraform.rb', line 27 def init(opts = {}) Commands::Init.new.execute(opts) end |
#output(opts = {}) ⇒ Object
59 60 61 |
# File 'lib/ruby_terraform.rb', line 59 def output(opts = {}) Commands::Output.new.execute(opts) end |
#output_from_remote(opts) ⇒ Object
67 68 69 70 71 72 73 74 |
# File 'lib/ruby_terraform.rb', line 67 def output_from_remote(opts) output_name = opts[:name] remote_opts = opts[:remote] clean remote_config(remote_opts) output(name: output_name) end |
#plan(opts = {}) ⇒ Object
39 40 41 |
# File 'lib/ruby_terraform.rb', line 39 def plan(opts = {}) Commands::Plan.new.execute(opts) end |
#refresh(opts = {}) ⇒ Object
55 56 57 |
# File 'lib/ruby_terraform.rb', line 55 def refresh(opts = {}) Commands::Refresh.new.execute(opts) end |
#remote_config(opts = {}) ⇒ Object
51 52 53 |
# File 'lib/ruby_terraform.rb', line 51 def remote_config(opts = {}) Commands::RemoteConfig.new.execute(opts) end |