Module: RubyTerraform

Extended by:
ClassMethods
Defined in:
lib/ruby_terraform.rb,
lib/ruby_terraform/errors.rb,
lib/ruby_terraform/output.rb,
lib/ruby_terraform/options.rb,
lib/ruby_terraform/version.rb,
lib/ruby_terraform/commands.rb,
lib/ruby_terraform/commands/get.rb,
lib/ruby_terraform/options/name.rb,
lib/ruby_terraform/commands/base.rb,
lib/ruby_terraform/commands/init.rb,
lib/ruby_terraform/commands/plan.rb,
lib/ruby_terraform/commands/show.rb,
lib/ruby_terraform/options/types.rb,
lib/ruby_terraform/commands/apply.rb,
lib/ruby_terraform/commands/graph.rb,
lib/ruby_terraform/commands/login.rb,
lib/ruby_terraform/commands/taint.rb,
lib/ruby_terraform/options/global.rb,
lib/ruby_terraform/options/values.rb,
lib/ruby_terraform/commands/format.rb,
lib/ruby_terraform/commands/import.rb,
lib/ruby_terraform/commands/logout.rb,
lib/ruby_terraform/commands/output.rb,
lib/ruby_terraform/options/factory.rb,
lib/ruby_terraform/commands/destroy.rb,
lib/ruby_terraform/commands/refresh.rb,
lib/ruby_terraform/commands/untaint.rb,
lib/ruby_terraform/commands/validate.rb,
lib/ruby_terraform/commands/providers.rb,
lib/ruby_terraform/options/definition.rb,
lib/ruby_terraform/options/types/flag.rb,
lib/ruby_terraform/commands/state_list.rb,
lib/ruby_terraform/commands/state_move.rb,
lib/ruby_terraform/commands/state_pull.rb,
lib/ruby_terraform/commands/state_push.rb,
lib/ruby_terraform/commands/state_show.rb,
lib/ruby_terraform/options/definitions.rb,
lib/ruby_terraform/options/values/base.rb,
lib/ruby_terraform/commands/force_unlock.rb,
lib/ruby_terraform/commands/state_remove.rb,
lib/ruby_terraform/options/values/string.rb,
lib/ruby_terraform/commands/workspace_new.rb,
lib/ruby_terraform/errors/execution_error.rb,
lib/ruby_terraform/options/types/standard.rb,
lib/ruby_terraform/options/values/boolean.rb,
lib/ruby_terraform/options/values/complex.rb,
lib/ruby_terraform/commands/providers_lock.rb,
lib/ruby_terraform/commands/workspace_list.rb,
lib/ruby_terraform/commands/workspace_show.rb,
lib/ruby_terraform/options/values/key_value.rb,
lib/ruby_terraform/commands/providers_mirror.rb,
lib/ruby_terraform/commands/providers_schema.rb,
lib/ruby_terraform/commands/workspace_delete.rb,
lib/ruby_terraform/commands/workspace_select.rb,
lib/ruby_terraform/commands/state_replace_provider.rb

Defined Under Namespace

Modules: ClassMethods, Commands, Errors, Options Classes: Configuration, MultiIO, Output

Constant Summary collapse

VERSION =
'1.6.0'

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from ClassMethods

apply, destroy, force_unlock, format, get, graph, import, init, login, logout, output, plan, providers, providers_lock, providers_mirror, providers_schema, refresh, show, state_list, state_move, state_pull, state_push, state_remove, state_replace_provider, state_show, taint, untaint, validate, workspace, workspace_delete, workspace_list, workspace_new, workspace_select, workspace_show

Class Attribute Details

.configurationObject



13
14
15
# File 'lib/ruby_terraform.rb', line 13

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



17
18
19
# File 'lib/ruby_terraform.rb', line 17

def configure
  yield(configuration)
end

.included(other) ⇒ Object



1597
1598
1599
# File 'lib/ruby_terraform.rb', line 1597

def self.included(other)
  other.extend(ClassMethods)
end

.reset!Object



21
22
23
# File 'lib/ruby_terraform.rb', line 21

def reset!
  @configuration = nil
end