Sha256: 71d8f0025565e3a22fc1af26eebd2778e03134f7672f170ac9f070469bf9f5d3
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
require "net/http" require "net/https" require "uri" require 'rbconfig' def get_remote_https_file(source, destination) uri = URI.parse(source) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(uri.request_uri) response = http.request(request) path = File.join(destination_root, destination) File.open(path, "w") { |file| file.write(response.body) } end say "Building Application with IceBreaker..." append_file '.gitignore' do <<-RUBY .DS_Store config/database.yml public/system/**/**/**/* .rspec .sass-cache DIFF* RUBY end git :init # Apply Gemfile apply File.expand_path("../gemfile.rb", __FILE__) # Apply Mongoid apply File.expand_path("../mongoid.rb", __FILE__) # Apply JQuery apply File.expand_path("../jquery.rb", __FILE__) # Apply Test Suite apply File.expand_path("../test_suite.rb", __FILE__) # Remove RSpec stuff we are not gonna use right away apply File.expand_path("../rspec_clean.rb", __FILE__) # Apply rails clean up apply File.expand_path("../rails_clean.rb", __FILE__) # Apply RVM settings apply File.expand_path("../rvm.rb", __FILE__) git :add => "." git :commit => "-am 'Initial Commit'" say <<-D ######################################################################## IceBreaker just added like 6 hours to your life. Next run... rake spec rails s ######################################################################## D
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
icebreaker-0.0.4 | templates/bootstrap.rb |