rails_pwnerer 0.6.91 → 0.6.92

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6.92. Use 'bundle exec rake' instead of 'rake' for apps with a Gemfile.
2
+
1
3
  v0.6.91. Support for the asset pipeline in Rails 3.1.
2
4
 
3
5
  v0.6.90. Workaround daemonz permission issue.
@@ -18,14 +18,22 @@ class RailsPwnerer::App::Assets
18
18
  # removes asset caches from the application directory
19
19
  def cleanup_app_caches(app_name, instance_name)
20
20
  Dir.chdir RailsPwnerer::Config[app_name, instance_name][:app_path] do
21
- Kernel.system "rake assets:clean RAILS_ENV=production"
21
+ if File.exist?('Gemfile')
22
+ Kernel.system 'bundle exec rake assets:clean RAILS_ENV=production'
23
+ else
24
+ Kernel.system 'rake assets:clean RAILS_ENV=production'
25
+ end
22
26
  end
23
27
  end
24
28
 
25
29
  # builds up the asset caches
26
30
  def build_app_caches(app_name, instance_name)
27
31
  Dir.chdir RailsPwnerer::Config[app_name, instance_name][:app_path] do
28
- Kernel.system "rake assets:precompile RAILS_ENV=production"
32
+ if File.exist?('Gemfile')
33
+ Kernel.system 'bundle exec rake assets:precompile RAILS_ENV=production'
34
+ else
35
+ Kernel.system 'rake assets:precompile RAILS_ENV=production'
36
+ end
29
37
  end
30
38
  end
31
39
  end
@@ -92,7 +92,11 @@ ENDSQL
92
92
  def migrate_database(app_name, instance_name)
93
93
  Dir.chdir RailsPwnerer::Config[app_name, instance_name][:app_path] do
94
94
  # now migrate the database
95
- system "rake db:migrate RAILS_ENV=production"
95
+ if File.exist?('Gemfile')
96
+ Kernel.system 'bundle exec rake db:migrate RAILS_ENV=production'
97
+ else
98
+ Kernel.system 'rake db:migrate RAILS_ENV=production'
99
+ end
96
100
  end
97
101
  end
98
102
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rails_pwnerer}
5
- s.version = "0.6.91"
5
+ s.version = "0.6.92"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Victor Costan}]
9
- s.date = %q{2011-07-01}
9
+ s.date = %q{2011-07-13}
10
10
  s.description = %q{Rails deployment hack.}
11
11
  s.email = %q{victor@costan.us}
12
12
  s.executables = [%q{rpwn}, %q{rpwnctl}, %q{rpwndev}]
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Rails_pwnerer}, %q{--main}, %q{README}]
18
18
  s.require_paths = [%q{lib}, %q{ext}]
19
19
  s.rubyforge_project = %q{rails-pwnage}
20
- s.rubygems_version = %q{1.8.4}
20
+ s.rubygems_version = %q{1.8.5}
21
21
  s.summary = %q{Rails deployment hack.}
22
22
  s.test_files = [%q{test/base_package_test.rb}]
23
23
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pwnerer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 177
4
+ hash: 191
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 91
10
- version: 0.6.91
9
+ - 92
10
+ version: 0.6.92
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-01 00:00:00 Z
18
+ date: 2011-07-13 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: zerg_support
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  requirements: []
230
230
 
231
231
  rubyforge_project: rails-pwnage
232
- rubygems_version: 1.8.4
232
+ rubygems_version: 1.8.5
233
233
  signing_key:
234
234
  specification_version: 3
235
235
  summary: Rails deployment hack.