porter 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Porter Gem
1
+ # Porter
2
2
 
3
- The Porter gem is comprised of Capistrano and Rake tasks that make cloning remote server data down to your local Rails application environment a cinch.
3
+ The Porter Ruby gem is comprised of Capistrano and Rake tasks that make cloning remote server data down to your local Rails application environment a cinch.
4
4
 
5
5
  ## Dependencies
6
6
 
@@ -18,7 +18,7 @@ More on the Capistrano Multistage Extension:
18
18
 
19
19
  ## Installation
20
20
 
21
- * Add gem "porter", "~> 1.2.0" to your Gemfile
21
+ * Add gem "porter", "~> 1.2.2" to your Gemfile
22
22
  * Run: bundle install
23
23
  * Run: rails g porter
24
24
  * Add require "porter/capistrano" to your config/deploy.rb
@@ -56,24 +56,5 @@ This will do the following:
56
56
 
57
57
  ## License
58
58
 
59
- The MIT License
60
-
61
- Copyright (c) 2010-2012 Kenny Johnston
62
-
63
- Permission is hereby granted, free of charge, to any person obtaining a copy
64
- of this software and associated documentation files (the "Software"), to deal
65
- in the Software without restriction, including without limitation the rights
66
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
67
- copies of the Software, and to permit persons to whom the Software is
68
- furnished to do so, subject to the following conditions:
69
-
70
- The above copyright notice and this permission notice shall be included in
71
- all copies or substantial portions of the Software.
72
-
73
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
74
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
75
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
76
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
77
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
78
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
79
- THE SOFTWARE.
59
+ * Freely distributable and licensed under the [MIT license](http://kjohnston.mit-license.org/license.html).
60
+ * Copyright (c) 2010-2012 Kenny Johnston [![endorse](http://api.coderwall.com/kjohnston/endorsecount.png)](http://coderwall.com/kjohnston)
@@ -5,7 +5,7 @@ if instance = Capistrano::Configuration.instance
5
5
 
6
6
  namespace :porter do
7
7
 
8
- task :db do
8
+ task :db, :roles => :db do
9
9
  set :user, ENV["AS"] || ENV["USER"]
10
10
  puts "Connecting to #{domain} as #{user}..."
11
11
 
@@ -14,11 +14,13 @@ if instance = Capistrano::Configuration.instance
14
14
  run "cat #{deploy_to}/current/config/database.yml" do |channel, stream, data|
15
15
  db_yml << data
16
16
  end
17
- db_config = YAML::load(db_yml)[stage.to_s]
18
- db_name = db_config["database"]
19
- db_username = db_config["username"]
20
- db_password = db_config["password"]
21
- db_credentials = "--user=#{db_username} --password=#{db_password} "
17
+ db_config = YAML::load(db_yml)[stage.to_s]
18
+ db_name = db_config["database"]
19
+ db_username = db_config["username"]
20
+ db_password = db_config["password"]
21
+ db_host = db_config["host"]
22
+ db_credentials = "--user=#{db_username} --password=#{db_password} "
23
+ db_credentials += " --host=#{db_host} " unless db_host.nil?
22
24
 
23
25
  puts "Reading schema.rb on #{domain}..."
24
26
  schema_rb = ""
@@ -1,3 +1,3 @@
1
1
  module Porter
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: porter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-08 00:00:00.000000000Z
13
+ date: 2012-05-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano
17
- requirement: &2198798880 !ruby/object:Gem::Requirement
17
+ requirement: &70211395248360 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.5.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2198798880
25
+ version_requirements: *70211395248360
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: capistrano-ext
28
- requirement: &2198798380 !ruby/object:Gem::Requirement
28
+ requirement: &70211395247680 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2198798380
36
+ version_requirements: *70211395247680
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rake
39
- requirement: &2198797920 !ruby/object:Gem::Requirement
39
+ requirement: &70211395246940 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 0.8.7
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2198797920
47
+ version_requirements: *70211395246940
48
48
  description: Capistrano and Rake tasks for cloning production and/or staging databases
49
49
  and assets to development.
50
50
  email:
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 1.8.10
90
+ rubygems_version: 1.8.15
91
91
  signing_key:
92
92
  specification_version: 3
93
93
  summary: Capistrano and Rake tasks for cloning production and/or staging databases