Class: Raketeer::NokogiriDNFTask

Inherits:
NokogiriInstallTask show all
Defined in:
lib/raketeer/nokogiri_install_tasks.rb

Overview

Author:

  • Jonathan Bradley Whited

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from NokogiriInstallTask

#description, #install_cmd, #name

Instance Method Summary collapse

Methods inherited from NokogiriInstallTask

#define, #run

Constructor Details

#initialize(name = :nokogiri_dnf, &block) ⇒ NokogiriDNFTask

Returns a new instance of NokogiriDNFTask.

Since:

  • 0.1.0



75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 75

def initialize(name=:nokogiri_dnf,&block)
  super(name)

  @description = 'Install Nokogiri libs for Fedora/CentOS/Red Hat'

  @install_cmd = %w[ sudo dnf install ]
  @install_cmd << 'gcc'
  @install_cmd << 'ruby-devel'
  @install_cmd << 'zlib-devel'

  define(&block)
end