Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live #7

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
9eb90ae
Adding opscode cookbooks
adamhjk Jan 18, 2009
7933941
lowercasing platform names
adamhjk Jan 18, 2009
d63bcd0
Lots of fixes for platform names now being lower case
adamhjk Jan 18, 2009
04e57c4
COOK-131, initial commit of skeleton metadata files.
Jun 3, 2009
44f4f97
cook-131, flesh out more cookbook metadata
Jun 4, 2009
22d6a06
metadata task and json data
Sep 3, 2009
3cba404
cook-188, update copyright notices, regen metadata too
Sep 28, 2009
2aff8f2
supports platform metadata for all cookbooks that didn't have it
Oct 27, 2009
ceece80
tell ubuntu we're using the headless jre
danielsdeleo Nov 7, 2009
0018eb8
update-java-alternatives returns 0 if you do it right
danielsdeleo Nov 7, 2009
5415a27
only update alternatives for jre, ignore failures anyway, because the…
Dec 9, 2009
dc019ed
Merge branch 'master' into danielsdeleo/08boot
Feb 3, 2010
5c9ddce
merge conflict artifact
Feb 3, 2010
99eded2
support additional platforms, add readme, fixes COOK-250, COOK-234
Feb 5, 2010
f99cab2
support additional platforms, add readme, fixes COOK-250, COOK-234
Feb 5, 2010
7f535f3
Merge branch 'master' into 08alpha_bootstrap
Feb 25, 2010
805539c
Updating metadata, versions and documentation for bootstrap, for 0.8.…
Feb 28, 2010
0657cf6
Remove metadata.json and update application readme.
Apr 25, 2010
881bdc6
Remove metadata.json and update application readme.
Apr 25, 2010
725af21
regenerate latest metadata.json for consistency across cookbooks.
Apr 29, 2010
344c1b0
merge refactoring of the bootstrap->chef cookbooks
Apr 30, 2010
c0b061a
Switch debian/ubuntu Java package to openjdk, preseed unnecessary, an…
May 4, 2010
654a07f
Update metadata across the board.
May 5, 2010
320c436
readme update, notice of sun-java deprecation
May 19, 2010
5124434
Fix tiny java typo I happened to notice
May 13, 2010
932a4e9
COOK-316, add recipes to metadata for all cookbooks
Jul 2, 2010
89b4a47
first pass at a combined openjdk and sun java cookbook
schisamo Oct 26, 2010
9b6faf5
final tweaks for combined jdk cookbook
schisamo Oct 29, 2010
f4941e6
Merge branch 'master' of git://github.com/opscode/cookbooks
hedgehog Dec 6, 2010
9ebb42c
Merge branch 'master' of git://github.com/opscode/cookbooks
hedgehog Dec 6, 2010
a20f380
force alternative update and ohai reload immediately
schisamo Dec 10, 2010
f8e67c4
bumped versions and generated metadata for release
schisamo Dec 10, 2010
b8756d1
Merge branch 'master' of git://github.com/opscode/cookbooks
hedgehog Dec 13, 2010
aa1baad
Merge branch 'master' of git://github.com/opscode/cookbooks
hedgehog Dec 13, 2010
882235f
force alternative update and ohai reload immediately
schisamo Dec 10, 2010
bd556bb
bumped versions and generated metadata for release
schisamo Dec 10, 2010
a47faa7
Merge remote branch 'origin/openvpn-improvements' into openvpn-improv…
Dec 29, 2010
ddbb48e
Merge branch 'master' of git://github.com/opscode/cookbooks
hedgehog Feb 7, 2011
2ad898c
Merge branch 'master' of git://github.com/opscode/cookbooks
hedgehog Feb 7, 2011
7adb6b8
Initial commit
hedgehog Feb 7, 2011
5827131
Merge branch 'master' into live
Feb 7, 2011
05f207a
Merge branch 'master' of github-ckbk:cookbooks/java into live
Feb 24, 2011
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions cc.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# -*- encoding: utf-8 -*-
lib = File.expand_path('../',__FILE__)
lib_up = File.expand_path('../../', __FILE__)
$:.unshift lib unless $:.include?(lib)
$:.unshift lib_up unless $:.include?(lib_up)
require 'json'

ENV['GEM_PATH']=ENV['BUNDLE_INSTALL_PATH'] if ENV['BUNDLE_INSTALL_PATH']
ENV['GEM_HOME']=ENV['BUNDLE_INSTALL_PATH'] if ENV['BUNDLE_INSTALL_PATH']

name = File.split(lib)[-1]||""
raise ArgumentError, '', caller if name.empty?
@name=name

Gem.use_paths(ENV['BUNDLE_INSTALL_PATH'],[]) if ENV['BUNDLE_INSTALL_PATH']

Gem::Specification.new do |s|

md = JSON.parse(File.read(File.expand_path('../metadata.json', __FILE__)))

# Required attributes (gem build fails without these)
s.name = @name
s.version = md['version'] && !md['version'].empty? ? md['version'] : '0'
s.files = Dir.glob('**/*') #.map{|f| File.expand_path(f)}
s.summary = md['description'] ? md['description'] : "The Chef cookbook for #{s.name}"

# Optional attributes (gem build warning raised without these)
s.author = md['maintainer'] ? md['maintainer'] : 'No acknowledged maintainer'
s.description = md['long_description'] ? md['long_description'] : s.summary
s.email = md['maintainer_email'] ? md['maintainer_email'] : 'No acknowledged maintainer email'
s.homepage = 'http://www.opscode.com'
md['dependencies'].each { |k,v| s.add_dependency(k,v) };

s.post_install_message = "Installed Chef Cookbook #{s.name}\n#{s.description}"

end