shuttle 1.2.0 → 1.2.1

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.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -43,9 +43,8 @@ task :shuttle, :stage do |t, args|
43
43
  require 'colored'
44
44
 
45
45
  puts %{
46
- You should define Shuttle Steps in 'config/initializers/shuttle.rb'.
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
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.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: