shuttle 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,17 @@
1
1
  Shuttle.setup do |s|
2
-
3
- # TODO: Setup Steps Description
4
-
5
2
  s.steps = [
6
- 'shuttle:start',
3
+ 'shuttle:git:check',
4
+ 'shuttle:git:pull',
7
5
  'shuttle:bundle',
8
6
  'db:migrate',
9
7
  'shuttle:spec',
10
- 'shuttle:git:push'
8
+ 'shuttle:git:push',
9
+ # 'log:clear',
10
+ # 'tmp:clear',
11
11
  ]
12
12
 
13
- # TODO: Setup Stages Description
14
-
15
13
  # s.stages = {
16
14
  # staging: 'your@server.com:staging-repository.git',
17
15
  # production: 'your@server.com:production-repository.git'
18
16
  # }
19
-
20
17
  end
@@ -1,3 +1,3 @@
1
1
  module Shuttle
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
@@ -30,17 +30,9 @@ namespace :shuttle do
30
30
  task spec: 'db:test:prepare' do
31
31
  sh 'rspec spec'
32
32
  end
33
-
34
- task start: ['git:check', 'log:clear', 'tmp:clear', 'git:pull']
35
-
36
- def p80(message)
37
- puts '-' * 80
38
- puts message if message
39
- yield if block_given?
40
- end
41
33
  end
42
34
 
43
- desc 'Launch the code to the space!'
35
+ desc 'Launch the code to space!'
44
36
  task :shuttle, :stage do |t, args|
45
37
  Rake::Task[:environment].invoke
46
38
 
@@ -53,6 +45,12 @@ task :shuttle, :stage do |t, args|
53
45
  exit
54
46
  end
55
47
 
48
+ def p80(message)
49
+ puts '-' * 80
50
+ puts message if message
51
+ yield if block_given?
52
+ end
53
+
56
54
  Shuttle.steps.each do |step|
57
55
  p80("Executing #{step}...") do
58
56
  Rake::Task[step].invoke
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.2
4
+ version: 1.2.3
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-30 00:00:00.000000000 Z
12
+ date: 2012-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colored