shuttle 1.2.0 → 1.2.1
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 +3 -6
- metadata +1 -1
data/lib/shuttle/version.rb
CHANGED
data/lib/tasks/shuttle.rake
CHANGED
@@ -43,9 +43,8 @@ task :shuttle, :stage do |t, args|
|
|
43
43
|
require 'colored'
|
44
44
|
|
45
45
|
puts %{
|
46
|
-
|
47
|
-
|
48
|
-
Or run 'rails g shuttle:install' to create this file with default steps.
|
46
|
+
You should define Shuttle Steps in 'config/initializers/shuttle.rb'.
|
47
|
+
Or run 'rails g shuttle:install' to create this file with default steps.
|
49
48
|
}.yellow
|
50
49
|
|
51
50
|
exit
|
@@ -58,9 +57,7 @@ task :shuttle, :stage do |t, args|
|
|
58
57
|
end
|
59
58
|
end
|
60
59
|
|
61
|
-
repository = Shuttle.stages[args[:stage].try(:to_sym)
|
62
|
-
|
63
|
-
if repository.present?
|
60
|
+
if repository = Shuttle.stages.try(:[], args[:stage].try(:to_sym))
|
64
61
|
p80("Executing deploy to #{args[:stage].to_s}...") do
|
65
62
|
sh "git push #{repository} HEAD:master -f"
|
66
63
|
end
|