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.
21
22
23
24
25
26
27
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 21
def initialize(name)
super()
@description = nil
@install_cmd = nil
@name = name
end
|
Instance Attribute Details
#description ⇒ Object
17
18
19
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 17
def description
@description
end
|
#install_cmd ⇒ Object
18
19
20
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 18
def install_cmd
@install_cmd
end
|
#name ⇒ Object
19
20
21
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 19
def name
@name
end
|
Instance Method Details
#define(&block) ⇒ Object
29
30
31
32
33
34
35
36
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 29
def define(&block)
block&.call(self)
desc @description
task @name do |task,args|
run(task,args)
end
end
|
#run(_task, _args) ⇒ Object
38
39
40
|
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 38
def run(_task,_args)
sh(*@install_cmd)
end
|