class Raketeer::NokogiriInstallTask
@author Jonathan Bradley Whited @since 0.1.0
Attributes
description[RW]
install_cmd[RW]
name[RW]
Public Class Methods
new(name)
click to toggle source
Calls superclass method
# File lib/raketeer/nokogiri_install_tasks.rb, line 26 def initialize(name) super() @description = nil @install_cmd = nil @name = name end
Public Instance Methods
define(&block)
click to toggle source
# 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)
click to toggle source
# File lib/raketeer/nokogiri_install_tasks.rb, line 43 def run(task,args) sh(*@install_cmd) end