Sha256: d03684d0375d644a02dec1fc65219a048e2d2baead63dbf1e26867736afbd54f

Contents?: true

Size: 586 Bytes

Versions: 6

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'
require_relative '../options/common'

module RubyTerraform
  module Commands
    class WorkspaceDelete < Base
      include RubyTerraform::Options::Common

      def subcommands
        %w[workspace delete]
      end

      def options
        %w[
          -force
          -lock
          -lock-timeout
        ] + super
      end

      def arguments(parameters)
        [parameters[:workspace], parameters[:directory]]
      end

      def parameter_defaults(_parameters)
        { directory: nil }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby-terraform-0.65.0.pre.15 lib/ruby_terraform/commands/workspace_delete.rb
ruby-terraform-0.65.0.pre.14 lib/ruby_terraform/commands/workspace_delete.rb
ruby-terraform-0.65.0.pre.13 lib/ruby_terraform/commands/workspace_delete.rb
ruby-terraform-0.65.0.pre.12 lib/ruby_terraform/commands/workspace_delete.rb
ruby-terraform-0.65.0.pre.11 lib/ruby_terraform/commands/workspace_delete.rb
ruby-terraform-0.65.0.pre.10 lib/ruby_terraform/commands/workspace_delete.rb