Class: Raketeer::NokogiriAPTTask

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_apt, &block) ⇒ NokogiriAPTTask

Returns a new instance of NokogiriAPTTask.

Since:

  • 0.1.0



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/raketeer/nokogiri_install_tasks.rb', line 53

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

  @description = 'Install Nokogiri libs for Ubuntu/Debian'

  @install_cmd = %w[ sudo apt-get install ]
  @install_cmd << 'build-essential'
  @install_cmd << 'libgmp-dev'
  @install_cmd << 'liblzma-dev'
  @install_cmd << 'patch'
  @install_cmd << 'ruby-dev'
  @install_cmd << 'zlib1g-dev'

  define(&block)
end