shuttle 1.2.1 → 1.2.2
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 -4
- metadata +2 -2
data/lib/shuttle/version.rb
CHANGED
data/lib/tasks/shuttle.rake
CHANGED
@@ -1,10 +1,15 @@
|
|
1
|
+
require 'colored'
|
2
|
+
|
1
3
|
namespace :shuttle do
|
2
4
|
namespace :git do
|
3
5
|
task :check do
|
4
6
|
out = `git status`
|
5
7
|
|
6
8
|
if out.include?('Untracked files:') || out.include?('unmerged:') || out.include?('modified:')
|
7
|
-
puts
|
9
|
+
puts %{
|
10
|
+
You have some files to be commit. Please check it with 'git status'.
|
11
|
+
}.red
|
12
|
+
|
8
13
|
exit
|
9
14
|
end
|
10
15
|
end
|
@@ -40,8 +45,6 @@ task :shuttle, :stage do |t, args|
|
|
40
45
|
Rake::Task[:environment].invoke
|
41
46
|
|
42
47
|
if Shuttle.steps.blank?
|
43
|
-
require 'colored'
|
44
|
-
|
45
48
|
puts %{
|
46
49
|
You should define Shuttle Steps in 'config/initializers/shuttle.rb'.
|
47
50
|
Or run 'rails g shuttle:install' to create this file with default steps.
|
@@ -52,7 +55,6 @@ task :shuttle, :stage do |t, args|
|
|
52
55
|
|
53
56
|
Shuttle.steps.each do |step|
|
54
57
|
p80("Executing #{step}...") do
|
55
|
-
RAILS_ENV = ENV['RAILS_ENV'] || 'development'
|
56
58
|
Rake::Task[step].invoke
|
57
59
|
end
|
58
60
|
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
|
+
version: 1.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colored
|