ors 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ module ORS::Commands
2
+
3
+ class Exec < Base
4
+
5
+ def execute
6
+ info "executing command for #{name} #{environment}..."
7
+
8
+ execute_command migration_server, %(source ~/.rvm/scripts/rvm),
9
+ %(cd #{deploy_directory}),
10
+ %(bundle exec #{ENV["COMMAND"]})
11
+ end
12
+
13
+ end
14
+
15
+ end
@@ -10,6 +10,7 @@ Usage: ./ors <action> [environment=production] [options]
10
10
  help You're looking at it
11
11
  console Bring up a console on the production servers
12
12
  logs Show the last few log entries from the production servers
13
+ exec Executes a command (via the COMMAND environment variable) on the migration server
13
14
  deploy Update the code, run the migrations, and restart unicorn
14
15
  setup Sets up the default environment on the servers
15
16
  update Updates the code on all servers
@@ -25,7 +26,6 @@ Defaults to production.
25
26
  === Options
26
27
  --pretend (or -p) Don't execute anything, just show me what you're going to do (default: false)
27
28
  --no-gateway (or -ng) Don't use a gateway (if you're inside the firewall) (default: true)
28
- --rails-2 (or -r2) Rails 2 application (use unicorn_rails instead of unicorn)
29
29
  END
30
30
  end
31
31
 
data/lib/ors/helpers.rb CHANGED
@@ -21,7 +21,7 @@ module ORS
21
21
  %(gem install rubygems-update),
22
22
  %(gem update --system),
23
23
  %(gem install bundler),
24
- %(bundle install --without development test osx > bundler.log)
24
+ %(bundle install --without development test osx_development > bundler.log)
25
25
  end
26
26
 
27
27
  def update_code server
@@ -38,7 +38,7 @@ module ORS
38
38
 
39
39
  execute_command server, %(source ~/.rvm/scripts/rvm),
40
40
  %(cd #{deploy_directory}),
41
- %(bundle install --without development test osx > bundler.log)
41
+ %(bundle install --without development test osx_development > bundler.log)
42
42
  end
43
43
 
44
44
  def start_server server
data/lib/ors/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ORS
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease: !!null
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire: !!null
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-02-08 00:00:00.000000000 -05:00
12
+ date: 2011-02-09 00:00:00.000000000 -05:00
13
13
  default_executable: !!null
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: git
17
- requirement: &2165489500 !ruby/object:Gem::Requirement
17
+ requirement: &2168760100 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2165489500
25
+ version_requirements: *2168760100
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &2165489080 !ruby/object:Gem::Requirement
28
+ requirement: &2168759680 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2165489080
36
+ version_requirements: *2168759680
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rr
39
- requirement: &2165488660 !ruby/object:Gem::Requirement
39
+ requirement: &2168759260 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2165488660
47
+ version_requirements: *2168759260
48
48
  description: Heroku-like deployment utilities for ORS
49
49
  email:
50
50
  - jason.dew@ors.sc.gov and john.long@ors.sc.gov
@@ -65,6 +65,7 @@ files:
65
65
  - lib/ors/commands/base.rb
66
66
  - lib/ors/commands/console.rb
67
67
  - lib/ors/commands/deploy.rb
68
+ - lib/ors/commands/exec.rb
68
69
  - lib/ors/commands/help.rb
69
70
  - lib/ors/commands/logs.rb
70
71
  - lib/ors/commands/migrate.rb