Class: Packer::EnvVar

Inherits:
Object
  • Object
show all
Defined in:
lib/packer/envvar.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args) ⇒ Object



4
5
6
# File 'lib/packer/envvar.rb', line 4

def method_missing(method_name, *args)
  "{{env `#{method_name}`}}"
end

Instance Method Details

#respond_to?(symbol, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
11
# File 'lib/packer/envvar.rb', line 8

def respond_to?(symbol, include_private=false)
  # We literally respond to everything...
  true
end