class Terraform::Remote
Public Class Methods
new(stack, command)
click to toggle source
Calls superclass method
Terraform::Command::new
# File lib/terraform_dsl/remote.rb, line 7 def initialize(stack, command) super unless @stack.remote.first puts "\tWARNING: #{@stack.name} is not configured with a remote backend" return end backend = @stack.remote.keys.first sym = "options_for_#{backend}" if self.respond_to?(sym, include_private: true) @command = send(sym, command) else fail RemoteNotSupported, "Remote backend #{backend} is not supported yet" end end
Public Instance Methods
execute()
click to toggle source
Calls superclass method
Terraform::Command#execute
# File lib/terraform_dsl/remote.rb, line 24 def execute return unless @stack.remote.first super end