ors 0.2.0 → 0.2.1

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.
@@ -0,0 +1,14 @@
1
+ module ORS::Commands
2
+
3
+ class Changes < Base
4
+
5
+ def execute
6
+ results = execute_command console_server, %(cd #{deploy_directory}), %(git show | head -1), :capture => true
7
+ if results =~ /commit (.*)/
8
+ system 'git', 'log', [$1, "remotes/origin/#{environment}"].join("..")
9
+ end
10
+ end
11
+
12
+ end
13
+
14
+ end
@@ -7,19 +7,18 @@ module ORS::Commands
7
7
  Usage: ./ors <action> [environment=production] [options]
8
8
 
9
9
  === Actions
10
- help You're looking at it
11
- env Print out the configuration
10
+ changes View changes between what is deployed and committed
11
+ check Prints out contents of restart.timestamp on the app servers
12
12
  console Bring up a console on the production servers
13
- logs Show the last few log entries from the production servers
14
- exec Executes a command (via the CMD environment variable) on the migration server
15
13
  deploy Update the code, run the migrations, and restart unicorn
16
- setup Sets up the default environment on the servers
17
- update Updates the code on all servers
14
+ help You're looking at it
15
+ logs Show the last few log entries from the production servers
18
16
  migrate Runs the migrations on the migration server
17
+ restart Retarts unicorn on the app servers
18
+ setup Sets up the default environment on the servers
19
19
  start Starts up unicorn on the app servers
20
20
  stop Stops unicorn on the app servers
21
- restart Retarts unicorn on the app servers
22
- check Prints out contents of restart.timestamp on the app servers
21
+ update Updates the code on all servers
23
22
 
24
23
  === Environments
25
24
  Must be one of: production demo staging
data/lib/ors/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ORS
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ors
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Dew and John Long
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-08 00:00:00 -04:00
18
+ date: 2011-04-11 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -80,6 +80,7 @@ files:
80
80
  - lib/ors.rb
81
81
  - lib/ors/command.rb
82
82
  - lib/ors/commands/base.rb
83
+ - lib/ors/commands/changes.rb
83
84
  - lib/ors/commands/check.rb
84
85
  - lib/ors/commands/console.rb
85
86
  - lib/ors/commands/deploy.rb
@@ -141,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
142
  requirements: []
142
143
 
143
144
  rubyforge_project: ors
144
- rubygems_version: 1.4.1
145
+ rubygems_version: 1.4.2
145
146
  signing_key:
146
147
  specification_version: 3
147
148
  summary: Heroku-like deployment utilities for ORS