Browse files

add cwd attribute for perlbrew_run

  • Loading branch information...
1 parent ad18e51 commit e100ef8e8ba9859e583d5b2843c07ead69e35491 @xdg xdg committed Jan 10, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 cookbooks/perlbrew/providers/run.rb
  2. +1 −0 cookbooks/perlbrew/resources/run.rb
View
1 cookbooks/perlbrew/providers/run.rb
@@ -30,6 +30,7 @@
}
bash new_resource.name do
environment new_resource.environment.merge(perlbrew_env)
+ cwd new_resource.cwd if new_resource.cwd
code <<-EOC
source #{node['perlbrew']['perlbrew_root']}/etc/bashrc
perlbrew use #{new_resource.perlbrew}
View
1 cookbooks/perlbrew/resources/run.rb
@@ -27,4 +27,5 @@ def initialize(*args)
attribute :command, :name_attribute => true, :kind_of => String
attribute :perlbrew, :kind_of => String, :required => true
+attribute :cwd, :kind_of => String
attribute :environment, :kind_of => Hash, :default => {}

0 comments on commit e100ef8

Please sign in to comment.