Sha256: c2ede99e2386d669bcfbc015fca987338541f5bbee2dce76fa6d5e751f309a75

Contents?: true

Size: 596 Bytes

Versions: 32

Compression:

Stored size: 596 Bytes

Contents

module Terraspace::Compiler::Dsl::Syntax::Helpers
  module Common
    extend Memoist
    Meta = Terraspace::Compiler::Dsl::Meta

    def var
      Meta::Var.new
    end
    memoize :var

    def local
      Meta::Local.new
    end
    memoize :local

    # Only show the first 2 args and now the options. Examples:
    #
    #     terraspace_command => "terraspace up demo"
    #     terraspace_command('-') => "terraspace-up-demo"
    #
    def terraspace_command(separator=' ')
      args = ARGV[0..1] || []
      command = ["terraspace"] + args
      command.join(separator)
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
terraspace-0.6.11 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.6.10 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.6.9 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.6.8 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.6.7 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.6.6 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.6.5 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.6.4 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.6.3 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.6.2 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.6.1 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.6.0 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.5.12 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.5.11 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.5.10 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.5.9 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.5.8 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.5.7 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.5.6 lib/terraspace/compiler/dsl/syntax/helpers/common.rb
terraspace-0.5.5 lib/terraspace/compiler/dsl/syntax/helpers/common.rb