shuttle 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Shuttle
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
3
3
  end
@@ -33,9 +33,7 @@ namespace :shuttle do
33
33
  end
34
34
 
35
35
  desc 'Launch the code to space!'
36
- task :shuttle, :stage do |t, args|
37
- Rake::Task[:environment].invoke
38
-
36
+ task :shuttle, [:stages] => :environment do |t, args|
39
37
  if Shuttle.steps.blank?
40
38
  puts %{
41
39
  You should define Shuttle Steps in 'config/initializers/shuttle.rb'.
@@ -57,9 +55,11 @@ task :shuttle, :stage do |t, args|
57
55
  end
58
56
  end
59
57
 
60
- if repository = Shuttle.stages.try(:[], args[:stage].try(:to_sym))
61
- p80("Executing deploy to #{args[:stage].to_s}...") do
62
- sh "git push #{repository} HEAD:master -f"
58
+ args[:stages].split(':').each do |stage|
59
+ if repository = Shuttle.stages.try(:[], stage.try(:to_sym))
60
+ p80("Executing deploy to #{args[:stage].to_s}...") do
61
+ sh "git push #{repository} HEAD:master -f"
62
+ end
63
63
  end
64
64
  end
65
65
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shuttle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: