class Biosphere::ActionContext

Attributes

build_directory[RW]
caller[RW]
src_path[RW]

Public Class Methods

new() click to toggle source
# File lib/biosphere/terraformproxy.rb, line 14
def initialize()

end

Public Instance Methods

find_file(filename) click to toggle source
# File lib/biosphere/terraformproxy.rb, line 32
def find_file(filename)
    src_path = Pathname.new(@src_path.last + "/" + File.dirname(filename)).cleanpath.to_s
    return src_path + "/" + File.basename(filename)
end
method_missing(symbol, *args) click to toggle source
Calls superclass method
# File lib/biosphere/terraformproxy.rb, line 22
def method_missing(symbol, *args)
    #puts ">>>>>>>> method missing: #{symbol}, #{args}"

    if @caller.methods.include?(symbol)
        return @caller.method(symbol).call(*args)
    end

    super
end
state() click to toggle source
# File lib/biosphere/terraformproxy.rb, line 18
def state
    return @caller.state.node
end