Class: Raketeer::NokogiriDNFTask

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

Overview

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



63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 63

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

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

  @install_cmd = %w[
    sudo dnf install
    zlib-devel xz patch
    make gcc rpm-build ruby-devel
  ]

  define(&block)
end