Skip to content

Commit

Permalink
Fixed puppetlabs#6554 - Missing $haveftool if/else conditional in ins…
Browse files Browse the repository at this point in the history
…tall.rb breaking Ruby 1.9
  • Loading branch information
jamtur01 committed Mar 2, 2011
1 parent 85e3174 commit 3e7ebbb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ def do_configs(configs, target, strip = 'conf/')
Dir.mkdir(target) unless File.directory? target
configs.each do |cf|
ocf = File.join(InstallOptions.config_dir, cf.gsub(/#{strip}/, ''))
File.install(cf, ocf, 0644, true)
end
if $haveftools
File.install(cf, ocf, 0644, true)
else
FileUtils.install(cf, ocf, {:mode => 0644, :verbose => true})
end
end
end

def do_bins(bins, target, strip = 's?bin/')
Expand Down

0 comments on commit 3e7ebbb

Please sign in to comment.