Class: Buildr::Shell::Base

Inherits:
Object show all
Defined in:
lib/buildr/shell.rb

Overview

Base class for any shell provider.

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ Base

Returns a new instance of Base.



88
89
90
# File 'lib/buildr/shell.rb', line 88

def initialize(project)
  @project = project
end

Class Attribute Details

.languagesObject

Returns the value of attribute languages.



76
77
78
# File 'lib/buildr/shell.rb', line 76

def languages
  @languages
end

.shell_nameObject

Returns the value of attribute shell_name.



76
77
78
# File 'lib/buildr/shell.rb', line 76

def shell_name
  @shell_name
end

Instance Attribute Details

#projectObject (readonly)

:nodoc:



73
74
75
# File 'lib/buildr/shell.rb', line 73

def project
  @project
end

Class Method Details

.specify(options) ⇒ Object



78
79
80
81
# File 'lib/buildr/shell.rb', line 78

def specify(options)
  @shell_name ||= options[:name]
  @languages ||= options[:languages]
end

.to_symObject



83
84
85
# File 'lib/buildr/shell.rb', line 83

def to_sym
  @shell_name || name.split('::').last.downcase.to_sym
end

Instance Method Details

#launch(task) ⇒ Object



92
93
94
# File 'lib/buildr/shell.rb', line 92

def launch(task)
  fail 'Not implemented'
end