Sha256: eb4a87e9f54576d9f111cafe7128d3943babe55f27928fdc3d7c737eff39be5b

Contents?: true

Size: 580 Bytes

Versions: 6

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

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

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

      def subcommands
        %w[workspace new]
      end

      def options
        %w[
          -lock
          -lock-timeout
          -state
        ] + 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_new.rb
ruby-terraform-0.65.0.pre.14 lib/ruby_terraform/commands/workspace_new.rb
ruby-terraform-0.65.0.pre.13 lib/ruby_terraform/commands/workspace_new.rb
ruby-terraform-0.65.0.pre.12 lib/ruby_terraform/commands/workspace_new.rb
ruby-terraform-0.65.0.pre.11 lib/ruby_terraform/commands/workspace_new.rb
ruby-terraform-0.65.0.pre.10 lib/ruby_terraform/commands/workspace_new.rb