Sha256: 3320bcf8f75c3ae8bc8b0f53918e7a73a84e2e1e9466ab760094573392fec0d2

Contents?: true

Size: 337 Bytes

Versions: 48

Compression:

Stored size: 337 Bytes

Contents

module Terraspace::Compiler
  module CommandsConcern
    def command_is?(*commands)
      commands.flatten!
      commands.map!(&:to_s)
      commands.include?(Terraspace.argv[0]) ||                  # IE: terraspace up
      Terraspace.argv[0] == "all" && commands.include?(Terraspace.argv[1]) # IE: terraspace all up
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.16 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.15 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.14 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.13 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.12 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.11 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.10 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.9 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.8 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.7 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.6 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.5 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.4 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.3 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.2 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.1 lib/terraspace/compiler/commands_concern.rb
terraspace-2.2.0 lib/terraspace/compiler/commands_concern.rb
terraspace-2.1.7 lib/terraspace/compiler/commands_concern.rb
terraspace-2.1.6 lib/terraspace/compiler/commands_concern.rb