shuttle 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shuttle/version.rb +1 -1
- data/lib/tasks/shuttle.rake +6 -6
- metadata +1 -1
data/lib/shuttle/version.rb
CHANGED
data/lib/tasks/shuttle.rake
CHANGED
@@ -33,9 +33,7 @@ namespace :shuttle do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
desc 'Launch the code to space!'
|
36
|
-
task :shuttle, :
|
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
|
-
|
61
|
-
|
62
|
-
|
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
|