Updated bootstrap task
Rodrigo Alvarez
committed Jan 21, 2013
commit 491fce5580f7d597d78f424b20e67ef578254d1d
Showing 1
changed file with
5 additions
and 6 deletions
Rakefile
+5
-6
| @@ | @@ -2,19 +2,18 @@ require "bundler/gem_tasks" |
| require "vcr" | |
| require "locomotive/builder" | |
| - | namespace :site do |
| - | task :pull do |
| + | namespace :development do |
| + | task :bootstrap do |
| VCR.configure do |c| | |
| c.cassette_library_dir = File.expand_path(File.dirname(__FILE__) + '/spec/integration/cassettes') | |
| c.hook_into :webmock # or :fakeweb | |
| + | c.allow_http_connections_when_no_cassette = true |
| end | |
| VCR.use_cassette('pull') do | |
| Locomotive::Builder.pull("site", "http://locomotive.engine.dev:3000", "admin@locomotivecms.com", "locomotive") | |
| end | |
| - | end |
| - | |
| - | task :push do |
| - | Locomotive::Builder.push("site", "http://locomotive.engine.dev:3000", "admin@locomotivecms.com", "locomotive") |
| + | |
| + | Locomotive::Builder.push("site", {"host" => "http://locomotive.engine.dev:3000"}, "email" => "admin@locomotivecms.com", "password" => "locomotive", "force" => true) |
| end | |
| end | |