Class: Raketeer::NokogiriInstallTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Raketeer::NokogiriInstallTask
show all
- Defined in:
- lib/raketeer/nokogiri_install_tasks.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of NokogiriInstallTask.
26
27
28
29
30
31
32
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 26
def initialize(name)
super()
@description = nil
@install_cmd = nil
@name = name
end
|
Instance Attribute Details
#description ⇒ Object
22
23
24
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 22
def description
@description
end
|
#install_cmd ⇒ Object
23
24
25
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 23
def install_cmd
@install_cmd
end
|
#name ⇒ Object
24
25
26
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 24
def name
@name
end
|
Instance Method Details
#define(&block) ⇒ Object
34
35
36
37
38
39
40
41
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 34
def define(&block)
block&.call(self)
desc @description
task @name do |task,args|
run(task,args)
end
end
|
#run(task, args) ⇒ Object
43
44
45
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 43
def run(task,args)
sh(*@install_cmd)
end
|