summaryrefslogtreecommitdiff
path: root/chef/Rakefile
blob: 13738158e4baf6a6d69bc36c48eabdbec1d9f6bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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}}
end

# vim: syntax=Ruby