diff options
Diffstat (limited to 'chef/Rakefile')
-rw-r--r-- | chef/Rakefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/chef/Rakefile b/chef/Rakefile new file mode 100644 index 0000000000..5343e66bcf --- /dev/null +++ b/chef/Rakefile @@ -0,0 +1,48 @@ +# -*- ruby -*- +require 'rubygems' +require 'rake/gempackagetask' +require './lib/chef.rb' +require './tasks/rspec.rb' + +GEM = "chef" +VERSION = "0.0.1" +AUTHOR = "Adam Jacob" +EMAIL = "adam@hjksolutions.com" +HOMEPAGE = "http://hjksolutions.com" +SUMMARY = "A configuration management system." + +spec = Gem::Specification.new do |s| + s.name = GEM + s.version = VERSION + s.platform = Gem::Platform::RUBY + s.has_rdoc = true + s.extra_rdoc_files = ["README.txt", "LICENSE", 'NOTICE'] + s.summary = SUMMARY + s.description = s.summary + s.author = AUTHOR + s.email = EMAIL + s.homepage = HOMEPAGE + + # Uncomment this to add a dependency + s.add_dependency "facter" + s.add_dependency "ruby-openid" + s.add_dependency "json" + s.add_dependency "erubis" + s.add_dependency "extlib" + + s.bindir = "bin" + s.executables = %w( chef-client chef-solo ) + + s.require_path = 'lib' + s.files = %w(LICENSE README.txt Rakefile) + Dir.glob("{lib,specs,config,examples}/**/*") +end + +Rake::GemPackageTask.new(spec) do |pkg| + pkg.gem_spec = spec +end + +task :install => [:package] do + sh %{sudo gem install pkg/#{GEM}-#{VERSION} --no-rdoc --no-ri} +end + +# vim: syntax=Ruby |