jw-heroku-rails 0.4.7 → 0.4.8

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,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jw-heroku-rails (0.4.7)
4
+ jw-heroku-rails (0.4.8)
5
5
  heroku-api (>= 0.3.8)
6
6
 
7
7
  GEM
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "jw-heroku-rails"
3
- s.version = "0.4.7"
3
+ s.version = "0.4.8"
4
4
 
5
5
  s.authors = ["Jeff Whitmire", "Elijah Miller", "Glenn Roberts", "Jacques Crocker"]
6
6
  s.summary = "Deployment and configuration tools for Heroku/Rails"
@@ -93,6 +93,7 @@ namespace :heroku do
93
93
  branch = `git branch`.scan(/^\* (.*)\n/).flatten.first.to_s
94
94
  if branch.present?
95
95
  @git_push_arguments ||= []
96
+
96
97
  system_with_echo "git push #{@push_repo || repo} #{@git_push_arguments.join(' ')} #{branch}:master && #{rake_cmd} --app #{app_name} db:migrate && heroku restart --app #{app_name}"
97
98
  else
98
99
  puts "Unable to determine the current git branch, please checkout the branch you'd like to deploy"
@@ -105,6 +106,16 @@ namespace :heroku do
105
106
  Rake::Task["heroku:after_deploy"].invoke
106
107
  end
107
108
 
109
+ namespace :pg do
110
+ desc "Open a postgres session to the database"
111
+ task :psql do
112
+ HEROKU_RUNNER.each_heroku_app do |heroku_env, app_name, repo|
113
+ system_with_echo "heroku pg:psql --app #{app_name}"
114
+ puts "\n"
115
+ end
116
+ end
117
+ end
118
+
108
119
  # Callback before all deploys
109
120
  task :before_deploy do
110
121
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jw-heroku-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-03-18 00:00:00.000000000 Z
15
+ date: 2013-03-19 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: heroku-api
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: 2903885299525577714
111
+ hash: -1320583259256126709
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: 2903885299525577714
120
+ hash: -1320583259256126709
121
121
  requirements: []
122
122
  rubyforge_project: none
123
123
  rubygems_version: 1.8.25