class Buildr::Run::Base

Base class for any run provider. Defines most common functionality (things like @lang@, @build?@ and friends).

Attributes

languages[RW]
runner_name[RW]
project[R]

Public Class Methods

new(project) click to toggle source
# File lib/buildr/run.rb, line 57
def initialize(project)
  @project = project
end
specify(options) click to toggle source
# File lib/buildr/run.rb, line 47
def specify(options)
  @runner_name ||= options[:name]
  @languages ||= options[:languages]
end
to_sym() click to toggle source
# File lib/buildr/run.rb, line 52
def to_sym
  @runner_name || name.split('::').last.downcase.to_sym
end

Public Instance Methods

build?() click to toggle source
# File lib/buildr/run.rb, line 61
def build?
  true
end
launch() click to toggle source
# File lib/buildr/run.rb, line 65
def launch
  fail 'Not implemented'
end