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



18
19
20
# File 'lib/packer/envvar.rb', line 18

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

Instance Method Details

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

Returns:

  • (Boolean)


22
23
24
25
# File 'lib/packer/envvar.rb', line 22

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