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.



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

def initialize(project)
  @project = project
end

Class Attribute Details

.languagesObject

Returns the value of attribute languages.



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

def languages
  @languages
end

.shell_nameObject

Returns the value of attribute shell_name.



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

def shell_name
  @shell_name
end

Instance Attribute Details

#projectObject (readonly)

:nodoc:



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

def project
  @project
end

Class Method Details

.specify(options) ⇒ Object



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

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

.to_symObject



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

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

Instance Method Details

#launch(task) ⇒ Object



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

def launch(task)
  fail 'Not implemented'
end