voomify_tasks 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/run_psql.rb CHANGED
@@ -6,6 +6,7 @@ module RunPSQL
6
6
  username = config["username"]
7
7
  host = config["host"]
8
8
  port = config["port"]
9
- `psql -f #{file_with_path} -U #{username} -h #{host} -p #{port} #{database} `
9
+ password = config["password"]
10
+ `export PGPASSWORD="#{password}";psql -f #{file_with_path} -U #{username} -h #{host} -p #{port} #{database};export PGPASSWORD=""`
10
11
  end
11
12
  end
@@ -1,12 +1,12 @@
1
1
  require 'replace_rake_tasks'
2
2
  require 'run_psql'
3
- # we override these tasks to use ddl file instead of ruby
3
+ # we override thes``````````````````````````e tasks to use ddl file instead of ruby
4
4
 
5
5
  namespace :db do
6
6
  namespace :schema do
7
7
  override_task :load => :environment do
8
8
  run_psql_file(ActiveRecord::Base.configurations[Rails.env], "schema.sql")
9
- end
9
+ end
10
10
 
11
11
  override_task :dump => :environment do
12
12
  puts 'This is a NOOP. The schema is defined in /db/sql/schema.sql.'
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voomify_tasks
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 29
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
- - 2
9
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - Russell Edens
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-08-02 00:00:00 -04:00
18
+ date: 2010-08-03 00:00:00 -04:00
18
19
  default_executable:
19
20
  dependencies: []
20
21
 
@@ -49,6 +50,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
49
50
  requirements:
50
51
  - - ">="
51
52
  - !ruby/object:Gem::Version
53
+ hash: 3
52
54
  segments:
53
55
  - 0
54
56
  version: "0"
@@ -57,6 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
59
  requirements:
58
60
  - - ">="
59
61
  - !ruby/object:Gem::Version
62
+ hash: 3
60
63
  segments:
61
64
  - 0
62
65
  version: "0"