From 8ff42ea1bbefbdcbf652b1dd46da11b12bf397ba Mon Sep 17 00:00:00 2001 From: Konstantin Gredeskoul & Richard Millan Date: Tue, 13 Aug 2013 15:57:59 -0700 Subject: [PATCH] default to package installation of nodejs on smartos --- attributes/default.rb | 8 +++++++- metadata.rb | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/attributes/default.rb b/attributes/default.rb index 9873a9f..b79c942 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -17,7 +17,13 @@ # limitations under the License. # -default['nodejs']['install_method'] = 'source' +case node['platform_family'] + when "smartos" + default['nodejs']['install_method'] = 'package' + else + default['nodejs']['install_method'] = 'source' +end + default['nodejs']['version'] = '0.10.13' default['nodejs']['checksum'] = '7e2079394efe82f62798178f617888c9d6a39150c76122c432ae9ea73ce28e79' default['nodejs']['checksum_linux_x64'] = '83b8f07aa7981694e557a9aae7e5bc4c312d800c' diff --git a/metadata.rb b/metadata.rb index d00eff9..a4946d7 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,7 +3,7 @@ license "Apache 2.0" description "Installs/Configures nodejs" long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version "1.2.0" +version "1.3.0" name "nodejs" provides "nodejs"