(puppetlabs/puppet) New pull request: Gemfile, created while trying to set up this to run on Windows
<wearetherobots <at> puppetlabs.com>
2011-09-01 15:30:06 GMT
Greetings!
Please review the pull request #89: Gemfile, created while trying to set up this to run on Windows opened by (haf)
Some more information about the pull request:
- Opened: Thu Sep 01 15:25:21 UTC 2011
- Based on: puppetlabs:master (86f47191cc4d9f4fc9416804559548e1b924286a)
- Requested merge: haf:master (b21a61579a2ecb01f6d3ca4b109027895b4e0267)
Description:
started hacking at getting a Gemfile up so that I can try this out in Windows without having to remember all dependencies. btw, tests are failing and I can't install win32-service through bundler, because it won't compile in the git bash
Thanks!
The Pull Request Bot
Diff follows:
diff --git a/.gitignore b/.gitignore
index a208237..5e09b51 100644
--- a/.gitignore
+++ b/.gitignore
<at> <at> -1,3 +1,5 <at> <at>
.rspec
results
.*.sw[op]
+dev/
+windows/
\ No newline at end of file
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..dfdc391
--- /dev/null
+++ b/Gemfile
<at> <at> -0,0 +1,16 <at> <at>
+source "http://rubygems.org"
+
+gem "rake"
+
+group :windows do
+ gem "sys-admin"
+ gem "win32-process"
+ gem "win32-dir"
+ gem "win32-service", "~> 0.7.1", :platforms => :mswin
+end
+
+group :dev do
+ gem "mocha"
+ gem "rspec"
+ gem "facter"
+end
\ No newline at end of file
diff --git a/README.md b/README.md
index 2d67c01..3543c8f 100644
--- a/README.md
+++ b/README.md
<at> <at> -32,6 +32,8 <at> <at> Generally, you need the following things installed:
* Facter => 1.5.1 (available via your package manager or from the [Facter site](http://puppetlabs.com/projects/facter).
+ * For Windows development, run `bundle install windows`
+
License
-------
diff --git a/Rakefile b/Rakefile
index e59d20a..98e3cd7 100644
--- a/Rakefile
+++ b/Rakefile
<at> <at> -36,6 +36,14 <at> <at> Rake::PackageTask.new("puppet", Puppet::PUPPETVERSION) do |pkg|
end
task :default do
+ processor, platform, *rest = RUBY_PLATFORM.split("-")
+ require 'bundler'
+ if platform == 'mswin32' then
+ Bundler.require(:default, :windows)
+ else
+ Bundler.require
+ end
+
sh %{rake -T}
end
<at> <at> -49,5 +57,7 <at> <at> end
desc "Run the unit tests"
task :unit do
+ require 'bundler'
+ Bundler.require(:dev)
Dir.chdir("test") { sh "rake" }
end
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to puppet-dev <at> googlegroups.com.
To unsubscribe from this group, send email to puppet-dev+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.