Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

good bye cider

  • Loading branch information...
commit 0d2efcb688ca311e762f657751e9b14712db0293 1 parent a4d204b
Corey Donohoe authored
14 Gemfile
... ... @@ -1,14 +0,0 @@
1   -source :gemcutter
2   -
3   -group :runtime do
4   - gem "rvm", "~>0.1.32"
5   - gem "chef", "~>0.9.8"
6   - gem "json", "1.4.2"
7   -end
8   -
9   -group :test do
10   - gem "rake"
11   - gem "bundler", "~>1.0"
12   -end
13   -
14   -# vim:ft=ruby
54 Gemfile.lock
... ... @@ -1,54 +0,0 @@
1   -GEM
2   - remote: http://rubygems.org/
3   - specs:
4   - abstract (1.0.0)
5   - bunny (0.6.0)
6   - chef (0.9.8)
7   - bunny (>= 0.6.0)
8   - erubis
9   - extlib
10   - highline
11   - json (<= 1.4.2)
12   - mixlib-authentication (>= 1.1.0)
13   - mixlib-cli (>= 1.1.0)
14   - mixlib-config (>= 1.1.0)
15   - mixlib-log (>= 1.1.0)
16   - moneta
17   - ohai (>= 0.5.6)
18   - rest-client (>= 1.0.4, <= 1.5.1)
19   - uuidtools
20   - erubis (2.6.6)
21   - abstract (>= 1.0.0)
22   - extlib (0.9.15)
23   - highline (1.6.1)
24   - json (1.4.2)
25   - mime-types (1.16)
26   - mixlib-authentication (1.1.4)
27   - mixlib-log
28   - mixlib-cli (1.2.0)
29   - mixlib-config (1.1.2)
30   - mixlib-log (1.1.0)
31   - moneta (0.6.0)
32   - ohai (0.5.6)
33   - extlib
34   - json (<= 1.4.2)
35   - mixlib-cli
36   - mixlib-config
37   - mixlib-log
38   - systemu
39   - rake (0.8.7)
40   - rest-client (1.5.1)
41   - mime-types (>= 1.16)
42   - rvm (0.1.47)
43   - systemu (1.2.0)
44   - uuidtools (2.1.1)
45   -
46   -PLATFORMS
47   - ruby
48   -
49   -DEPENDENCIES
50   - bundler (~> 1.0)
51   - chef (~> 0.9.8)
52   - json (= 1.4.2)
53   - rake
54   - rvm (~> 0.1.32)
20 LICENSE
... ... @@ -1,20 +0,0 @@
1   -Copyright (c) 2010 Corey Donohoe
2   -
3   -Permission is hereby granted, free of charge, to any person obtaining
4   -a copy of this software and associated documentation files (the
5   -"Software"), to deal in the Software without restriction, including
6   -without limitation the rights to use, copy, modify, merge, publish,
7   -distribute, sublicense, and/or sell copies of the Software, and to
8   -permit persons to whom the Software is furnished to do so, subject to
9   -the following conditions:
10   -
11   -The above copyright notice and this permission notice shall be
12   -included in all copies or substantial portions of the Software.
13   -
14   -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15   -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16   -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17   -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18   -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19   -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20   -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 README.md
Source Rendered
... ... @@ -1,25 +1,8 @@
1   -cinderella
2   -==========
  1 +cider
  2 +=====
3 3
4   -apple + homebrew + chef
  4 +Cider apparently infringed on someone's trademark so I renamed cider to cinderella.
5 5
6   -Installing
7   -==========
  6 +It's available in [another repo][cinderella]
8 7
9   - % open http://www.atmos.org/cinderella/intro.html
10   -
11   -You should be in great shape for contributing to open source on a mac after that.
12   -
13   -Contributing
14   -============
15   -
16   -Check out the [smeagol][smeagol] project if you want to modify the recipes
17   -
18   -Developing
19   -==========
20   - % gem install bundler
21   - % bundle install
22   - % bundle exec rake repackage
23   - % gem push
24   -
25   -[smeagol]: http://github.com/atmos/smeagol
  8 +[cinderella]: http://github.com/atmos/cinderella
38 Rakefile
... ... @@ -1,38 +0,0 @@
1   -require 'rake/gempackagetask'
2   -require 'rubygems/specification'
3   -require 'bundler'
4   -
5   -GEM = "cinderella"
6   -GEM_VERSION = "0.2.0"
7   -AUTHOR = "Corey Donohoe"
8   -EMAIL = "atmos@atmos.org"
9   -HOMEPAGE = "http://github.com/atmos/cinderella"
10   -SUMMARY = "The development environment you never wanted to manage alone"
11   -
12   -spec = Gem::Specification.new do |s|
13   - s.name = GEM
14   - s.version = GEM_VERSION
15   - s.platform = Gem::Platform::RUBY
16   - s.has_rdoc = true
17   - s.extra_rdoc_files = ["LICENSE"]
18   - s.summary = SUMMARY
19   - s.description = s.summary
20   - s.author = AUTHOR
21   - s.email = EMAIL
22   - s.homepage = HOMEPAGE
23   -
24   - bundle = Bundler::Definition.build('Gemfile', 'Gemfile.lock', { })
25   - bundle.dependencies.each do |dep|
26   - next unless dep.groups.include?(:runtime)
27   - s.add_dependency(dep.name, dep.version_requirements.to_s)
28   - end
29   -
30   - s.bindir = "bin"
31   - s.executables = %w( cinderella )
32   - s.require_path = 'lib'
33   - s.files = %w(LICENSE README.md Rakefile) + Dir.glob("{lib}/**/*")
34   -end
35   -
36   -Rake::GemPackageTask.new(spec) do |pkg|
37   - pkg.gem_spec = spec
38   -end
37 bin/cinderella
... ... @@ -1,37 +0,0 @@
1   -#!/usr/bin/env ruby
2   -require "rubygems"
3   -require "cinderella"
4   -require "optparse"
5   -
6   -ENV['HOME'] ||= '/Users/bofh'
7   -ENV['USER'] ||= 'bofh'
8   -ENV['EMAIL'] ||= 'noreply@gmail.com'
9   -ENV['EDITOR'] ||= 'vim'
10   -ENV['FULLNAME'] ||= 'Marlon Brando'
11   -
12   -RECOMMENDED_LLVM = 2206
13   -MACOS_FULL_VERSION = `/usr/bin/sw_vers -productVersion`.chomp
14   -MACOS_VERSION = /(10\.\d+)(\.\d+)?/.match(MACOS_FULL_VERSION).captures.first.to_f
15   -
16   -if MACOS_VERSION >= 10.6
17   - begin
18   - xcode_path = `/usr/bin/xcode-select -print-path`.chomp
19   - exit(1) if xcode_path.empty?
20   - if `#{xcode_path}/usr/bin/llvm-gcc-4.2 -v 2>&1` =~ /LLVM build (\d{4,})/
21   - if $1.to_i < RECOMMENDED_LLVM
22   - $stderr.puts "You should really upgrade your xcode install"
23   - end
24   - end
25   - rescue
26   - $stderr.puts "You need xcode for this to work :\\"
27   - exit(1)
28   - end
29   -else
30   - $stderr.puts "You should really upgrade to snow leopard"
31   - $stderr.puts "Make sure you have xcode installed and cross your fingers"
32   - $stderr.puts "I've seen it work on leopard though..."
33   -end
34   -
35   -Cider::Runner.run
36   -
37   -# vim:ft=ruby
29 bootstrap.sh
... ... @@ -1,29 +0,0 @@
1   -echo "Ensuring we have the latest version of cinderella installed"
2   -echo "Run started `date`" >> ~/.cinderella.bootstrap.log 2>&1
3   -which ruby >> ~/.cinderella.bootstrap.log 2>&1
4   -which gem >> ~/.cinderella.bootstrap.log 2>&1
5   -
6   -which gem | grep -q rvm
7   -if [ $? -eq 0 ]; then
8   - gem uninstall cinderella -aIx >> ~/.cinderella.bootstrap.log 2>&1
9   - gem install cinderella --no-rdoc --no-ri >> ~/.cinderella.bootstrap.log 2>&1
10   -else
11   - sudo gem uninstall cinderella -aIx >> ~/.cinderella.bootstrap.log 2>&1
12   - sudo gem install cinderella --no-rdoc --no-ri >> ~/.cinderella.bootstrap.log 2>&1
13   -fi
14   -
15   -echo "Cinderella installed successfully"
16   -
17   -hash -r
18   -cinderella
19   -if [ "$?" -eq "0" ]; then
20   - if [ -d ~/.cinderella ]; then
21   - mv ~/.cinderella.bootstrap.log ~/.cinderella
22   - fi
23   - source ~/.cinderella.profile
24   - hash -r
25   -else
26   - cat ~/.cinderella.bootstrap.log
27   - echo ""
28   - echo "Something went wonky with the install. :("
29   -fi
37 lib/cinderella.rb
... ... @@ -1,37 +0,0 @@
1   -require "json"
2   -require "tmpdir"
3   -require "rest_client"
4   -
5   -module Cider
6   - class Runner
7   - def self.run
8   - new.run
9   - end
10   -
11   - def run
12   - system("rm -rf ~/.cinderella")
13   - system("chef-solo -c #{config}")
14   - exit($?.to_i)
15   - end
16   -
17   - def config
18   - download_solo_rb
19   - filename
20   - end
21   -
22   - private
23   -
24   - def download_solo_rb
25   - response = RestClient.get("http://ciderapp.org/solo.rb")
26   - if response.code == 200
27   - File.open(filename, "w") do |fp|
28   - fp.write(response.body)
29   - end
30   - end
31   - end
32   -
33   - def filename
34   - @filename ||= File.expand_path(File.join(Dir.tmpdir, "cinderella.rb"))
35   - end
36   - end
37   -end

0 comments on commit 0d2efcb

Please sign in to comment.
Something went wrong with that request. Please try again.