Implement installation from package on RedHat

Now that EPEL includes the packages http://dl.fedoraproject.org/pub/epel/6/x86_64/
Esse commit está contido em:
Vasily Mikhaylichenko
2013-06-16 08:50:03 +10:00
commit 4408ed5eb9
7 arquivos alterados com 25 adições e 9 exclusões
+4
Ver Arquivo
@@ -1,3 +1,6 @@
## v1.2.0
* implement installation from package on RedHat - ([@vaskas][])
## v1.1.2:
* update default version of node to 0.10.2 - ([@bakins][])
* fully migrated to test-kitchen 1.alpha and vagrant 1.1.x/berkshelf 1.3.1
@@ -40,3 +43,4 @@
[@johannesbecker]: https://github.com/johannesbecker
[@smith]: https://github.com/smith
[@bakins]: https://github.com/bakins
[@vaskas]: https://github.com/vaskas
+3 -3
Ver Arquivo
@@ -4,7 +4,7 @@ gem 'foodcritic'
gem 'thor-foodcritic'
group :integration do
gem 'berkshelf', '~> 1.3.1'
gem 'test-kitchen', '~> 1.0.0.alpha.1'
gem 'kitchen-vagrant', '~> 0.7.2'
gem 'berkshelf'
gem 'test-kitchen', '~> 1.0.0.alpha'
gem 'kitchen-vagrant', '~> 0.10.0'
end
+3 -3
Ver Arquivo
@@ -29,8 +29,8 @@ recipes resources templates}
end
begin
require 'jamie/rake_tasks'
Jamie::RakeTasks.new
require 'kitchen/rake_tasks'
Kitchen::RakeTasks.new
rescue LoadError
puts ">>>>> Jamie gem not loaded, omitting tasks" unless ENV['CI']
puts ">>>>> Kitchen gem not loaded, omitting tasks" unless ENV['CI']
end
+4 -3
Ver Arquivo
@@ -3,7 +3,7 @@ maintainer_email "marius@promethost.com"
license "Apache 2.0"
description "Installs/Configures nodejs"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.1.2"
version "1.2.0"
name "nodejs"
provides "nodejs"
@@ -13,8 +13,9 @@ recipe "nodejs::install_from_binary", "Installs Node.JS from official binaries"
recipe "nodejs::install_from_package", "Installs Node.JS from packages"
recipe "nodejs::npm", "Installs npm from source - a package manager for node"
depends "build-essential"
depends "apt"
%w{ apt yum build-essential }.each do |c|
depends c
end
%w{ debian ubuntu centos redhat smartos }.each do |os|
supports os
+3
Ver Arquivo
@@ -37,6 +37,9 @@ case node['platform_family']
key "C7917B12"
action :add
end
when 'rhel'
include_recipe 'yum::epel'
packages = %w{ nodejs nodejs-devel npm }
when 'smartos'
packages = %w{ nodejs }
else
+4
Ver Arquivo
@@ -3,3 +3,7 @@
@test "node should be in the path" {
[ "$(command -v node)" ]
}
@test "npm should be in the path" {
[ "$(command -v npm)" ]
}
+4
Ver Arquivo
@@ -3,3 +3,7 @@
@test "node should be in the path" {
[ "$(command -v node)" ]
}
@test "npm should be in the path" {
[ "$(command -v npm)" ]
}