class Rubble::Command::Base

Attributes

context[R]
local[R]
plan[R]
remote[R]

Public Class Methods

new(plan, context) click to toggle source
# File lib/rubble/command/base.rb, line 11
def initialize(plan, context)
    @log = Logging.logger[self]
    @plan = plan
    @context = context
end

Public Instance Methods

deploy_dir() click to toggle source
# File lib/rubble/command/base.rb, line 52
def deploy_dir
    resolve(File.join(server.rubble_dir, server.deploy_dir))
end
env() click to toggle source
# File lib/rubble/command/base.rb, line 29
def env
    @plan.env
end
resolve(string) click to toggle source
# File lib/rubble/command/base.rb, line 47
def resolve(string)
    string = '"' << string.gsub('"', '\"') << '"'
    eval(string, binding)
end
resource() click to toggle source
# File lib/rubble/command/base.rb, line 25
def resource
    @plan.resource
end
server() click to toggle source
# File lib/rubble/command/base.rb, line 17
def server
    @plan.server
end
target() click to toggle source
# File lib/rubble/command/base.rb, line 21
def target
    @plan.target
end