[chef] What is the difference between the following following 2 gem installation methods?


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To: chef < >
  • Subject: [chef] What is the difference between the following following 2 gem installation methods?
  • Date: Thu, 8 Mar 2012 15:28:15 +0545

What is the difference between the following following 2 gem installation methods?

    gem_package "mysql" do
      action :install
    end

and

    r = gem_package "right_aws" do
      version node['aws']['right_aws_version']
      action :nothing
    end

    r.run_action(:install)

    require 'rubygems'
    Gem.clear_paths
    require 'right_aws'


-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow




Archive powered by MHonArc 2.6.16.

§