Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

Commit

Permalink
putting solo.rb on the website, removing from the gem
Browse files Browse the repository at this point in the history
  • Loading branch information
atmos committed Aug 31, 2010
1 parent 73ebb34 commit fd82a26
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 1 deletion.
50 changes: 50 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
GEM
remote: http://rubygems.org/
specs:
addressable (2.1.2)
faraday (0.4.6)
addressable (>= 2.1.1)
rack (>= 1.0.1)
json (1.4.6)
mime-types (1.16)
multi_json (0.0.4)
oauth2 (0.0.13)
faraday (~> 0.4.1)
multi_json (>= 0.0.4)
rack (1.1.0)
rack-test (0.5.4)
rack (>= 1.0)
rack_hoptoad (0.1.5)
rack
toadhopper (~> 1.0.1)
rake (0.8.7)
rcov (0.9.8)
rest-client (1.5.1)
mime-types (>= 1.16)
rspec (1.3.0)
sinatra (1.0)
rack (>= 1.0)
sinatra_auth_github (0.0.11)
rest-client (~> 1.5.1)
sinatra (~> 1.0)
warden-github (~> 0.0.5)
toadhopper (1.0.4)
warden (0.10.7)
rack (>= 1.0.0)
warden-github (0.0.6)
json (>= 1.0.0)
oauth2 (~> 0.0.8)
warden (~> 0.10)

PLATFORMS
ruby

DEPENDENCIES
addressable (~> 2.1.2)
rack (~> 1.1.0)
rack-test (~> 0.5.3)
rack_hoptoad (~> 0.1.2)
rake
rcov
rspec (~> 1.3.0)
sinatra_auth_github (~> 0.0.8)
10 changes: 9 additions & 1 deletion lib/cider_app/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ def recipe_file
@recipe_file ||= "cider.tgz"
end

def solo_rb
@solo_rb ||= File.read(File.dirname(__FILE__) + "/solo.rb.txt")
end

def refresh_cookbooks
Dir.chdir("./tmp") do
if File.directory?("smeagol")
Dir.chdir("smeagol") do
silently_run("ls -l")
silently_run("git checkout master")
silently_run("git reset --hard origin/master")
silently_run("git pull")
Expand Down Expand Up @@ -69,6 +72,11 @@ def refresh_cookbooks
send_file("./tmp/#{recipe_file}")
end

get '/solo.rb' do
content_type 'text/plain', :charset => 'utf-8'
solo_rb
end

get '/latest' do
content_type :json
{ :recipes =>
Expand Down
17 changes: 17 additions & 0 deletions lib/cider_app/solo.rb.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# Chef Solo Config File
#

cider_root = File.expand_path("~/.cider")

log_level :info
log_location STDOUT

recipe_url "http://ciderapp.org/cider.tgz"
json_attribs "http://ciderapp.org/latest"

sandbox_path "#{cider_root}/sandboxes"
cookbook_path "#{cider_root}/cookbooks"
file_cache_path "#{cider_root}"
file_backup_path "#{cider_root}/backup"
cache_options ({ :path => "#{cider_root}/cache/checksums", :skip_expires => true })

0 comments on commit fd82a26

Please sign in to comment.