Sha256: d4089449a6dbead14945e81ff81632a1b3f7f43391fbff31d17ea25bdb8b1ab0

Contents?: true

Size: 375 Bytes

Versions: 5

Compression:

Stored size: 375 Bytes

Contents

require 'fig/logging'
require 'fig/packageerror'
require 'fig/statement'

module Fig; end

# A statement that sets the value of an environment variable.
class Fig::Statement::Set
  include Fig::Statement

  attr_reader :name, :value

  def initialize(name, value)
    @name = name
    @value = value
  end

  def unparse(indent)
    "#{indent}set #{name}=#{value}"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fig-0.1.57 lib/fig/statement/set.rb
fig-0.1.55 lib/fig/statement/set.rb
fig-0.1.54 lib/fig/statement/set.rb
fig-0.1.53 lib/fig/statement/set.rb
fig-0.1.52 lib/fig/statement/set.rb