Class: Terraspace::CLI::Tfc

Inherits:
Terraspace::Command show all
Defined in:
lib/terraspace/cli/tfc.rb,
lib/terraspace/cli/tfc/runs.rb

Defined Under Namespace

Classes: Runs

Constant Summary collapse

Syncer =
Terraspace::Terraform::Tfc::Syncer
Workspace =
Terraspace::Terraform::Tfc::Workspace

Instance Method Summary collapse

Methods inherited from Terraspace::Command

alter_command_description, check_project!, check_standalone_install!, command_help, dispatch, exit_on_failure?, help_flags, initial_dispatch_command, opt?, rbenv?, reset_dispatch_command, rvm?, subcommand?, website

Methods included from Util::Logging

#logger

Instance Method Details

#destroy(mod) ⇒ Object



20
21
22
# File 'lib/terraspace/cli/tfc.rb', line 20

def destroy(mod)
  Workspace.new(options.merge(mod: mod)).destroy
end

#listObject



13
14
15
# File 'lib/terraspace/cli/tfc.rb', line 13

def list
  Workspace.new(options).list
end

#sync(*stacks) ⇒ Object



27
28
29
30
# File 'lib/terraspace/cli/tfc.rb', line 27

def sync(*stacks)
  Terraspace::CLI::Build::Placeholder.new(options).build
  Syncer.new(options.merge(stacks: stacks, override_auto_sync: true)).run
end