Please review pull request #188: Install gem dependencies opened by (joshcooper)

Description:

The FOSS version of Puppet on Windows requires several gems to run. Up
until now, the necessary gems were part of the 'git' snapshot. However,
as we add more features, additional gems will be required. Rather than
update the snapshot each time, this commit adds a setup step that
installs/updates the gems we require. It is written fairly generically
so that platform-specific gems and behavior can be added.

Note this step only occurs in 'git' but not 'pe' because in the latter
case, the gems should be part of the installer itself.

  • Opened: Thu Apr 05 19:39:17 UTC 2012
  • Based on: puppetlabs:master (232e21a5e6de2f2139153b7378259b3a2cc9f64c)
  • Requested merge: joshcooper:master (c13822359e91ac08aa8f2cf6edb248abdb24531a)

Diff follows:

diff --git a/setup/git/10_EnvSetup.rb b/setup/git/10_EnvSetup.rb
new file mode 100644
index 0000000..e64c01e
--- /dev/null
+++ b/setup/git/10_EnvSetup.rb
@@ -0,0 +1,12 @@
+test_name "Setup environment"
+
+WINDOWS_GEMS = %w[sys-admin win32-dir win32-eventlog win32-process win32-service win32-taskscheduler]
+
+hosts.each do |host|
+  case host['platform']
+  when /windows/
+    step "Installing gems"
+    on host, "cmd /c gem install #{WINDOWS_GEMS.join(' ')} --no-ri --no-rdoc"
+  else
+  end
+end

    

--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to