rails_pwnerer 0.6.90 → 0.6.91

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6.91. Support for the asset pipeline in Rails 3.1.
2
+
1
3
  v0.6.90. Workaround daemonz permission issue.
2
4
 
3
5
  v0.6.89. Restored compatibility with Rails 2 apps.
data/Manifest CHANGED
@@ -9,6 +9,7 @@ bin/rpwnctl
9
9
  bin/rpwndev
10
10
  ext/rpwn_setup_notice/extconf.rb
11
11
  lib/rails_pwnerer.rb
12
+ lib/rails_pwnerer/app/assets.rb
12
13
  lib/rails_pwnerer/app/cluster_config.rb
13
14
  lib/rails_pwnerer/app/config.rb
14
15
  lib/rails_pwnerer/app/db/mysql.rb
data/lib/rails_pwnerer.rb CHANGED
@@ -45,6 +45,7 @@ require 'rails_pwnerer/scaffolds/rubygems.rb'
45
45
  require 'rails_pwnerer/scaffolds/sshd.rb'
46
46
 
47
47
  require 'rails_pwnerer/app/main.rb'
48
+ require 'rails_pwnerer/app/assets.rb'
48
49
  require 'rails_pwnerer/app/config.rb'
49
50
  require 'rails_pwnerer/app/cluster_config.rb'
50
51
  require 'rails_pwnerer/app/files.rb'
@@ -0,0 +1,31 @@
1
+ # manages the precompiled assets in the Rails 3.1+ asset pipeline
2
+
3
+ class RailsPwnerer::App::Assets
4
+ include RailsPwnerer::Base
5
+
6
+ def setup(app_name, instance_name)
7
+ build_app_caches app_name, instance_name
8
+ end
9
+
10
+ def update_prefetch(app_name, instance_name)
11
+ cleanup_app_caches app_name, instance_name
12
+ end
13
+
14
+ def update(app_name, instance_name)
15
+ build_app_caches app_name, instance_name
16
+ end
17
+
18
+ # removes asset caches from the application directory
19
+ def cleanup_app_caches(app_name, instance_name)
20
+ Dir.chdir RailsPwnerer::Config[app_name, instance_name][:app_path] do
21
+ Kernel.system "rake assets:clean RAILS_ENV=production"
22
+ end
23
+ end
24
+
25
+ # builds up the asset caches
26
+ def build_app_caches(app_name, instance_name)
27
+ Dir.chdir RailsPwnerer::Config[app_name, instance_name][:app_path] do
28
+ Kernel.system "rake assets:precompile RAILS_ENV=production"
29
+ end
30
+ end
31
+ end
@@ -27,7 +27,7 @@ module RailsPwnerer::App
27
27
  break unless success == :next
28
28
  end
29
29
  if success == :ok
30
- [Config, Files, Gems, Database, ClusterConfig, NginxConfig, Scripts].each do |mod|
30
+ [Assets, Config, Files, Gems, Database, ClusterConfig, NginxConfig, Scripts].each do |mod|
31
31
  mod.new.setup app, instance
32
32
  end
33
33
  Scripts.new.pre_start app, instance
@@ -51,11 +51,11 @@ module RailsPwnerer::App
51
51
  def self.update(app_name, instance_name)
52
52
  app_name = app_name.gsub /\W/, '' # Remove weird punctuation.
53
53
  instance_magic(app_name, instance_name) do |app, instance|
54
- [Git, Perforce, Svn].each do |mod|
54
+ [Assets, Git, Perforce, Svn].each do |mod|
55
55
  mod.new.update_prefetch app, instance
56
56
  end
57
57
  update_app app, instance do
58
- [Git, Perforce, Svn, Config, Gems, Files, Database, Scripts].each do |mod|
58
+ [Git, Perforce, Svn, Assets, Config, Gems, Files, Database, Scripts].each do |mod|
59
59
  mod.new.update app, instance
60
60
  end
61
61
  end
@@ -2,25 +2,24 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rails_pwnerer}
5
- s.version = "0.6.90"
5
+ s.version = "0.6.91"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Victor Costan"]
9
- s.date = %q{2011-04-10}
10
- s.default_executable = %q{bin/rpwn}
8
+ s.authors = [%q{Victor Costan}]
9
+ s.date = %q{2011-07-01}
11
10
  s.description = %q{Rails deployment hack.}
12
11
  s.email = %q{victor@costan.us}
13
- s.executables = ["rpwn", "rpwnctl", "rpwndev"]
14
- s.extensions = ["ext/rpwn_setup_notice/extconf.rb"]
15
- s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "bin/rpwn", "bin/rpwnctl", "bin/rpwndev", "ext/rpwn_setup_notice/extconf.rb", "lib/rails_pwnerer.rb", "lib/rails_pwnerer/app/cluster_config.rb", "lib/rails_pwnerer/app/config.rb", "lib/rails_pwnerer/app/db/mysql.rb", "lib/rails_pwnerer/app/files.rb", "lib/rails_pwnerer/app/gems.rb", "lib/rails_pwnerer/app/main.rb", "lib/rails_pwnerer/app/nginx_config.rb", "lib/rails_pwnerer/app/scripts.rb", "lib/rails_pwnerer/app/vcs/git.rb", "lib/rails_pwnerer/app/vcs/perforce.rb", "lib/rails_pwnerer/app/vcs/svn.rb", "lib/rails_pwnerer/base.rb", "lib/rails_pwnerer/base/atomics.rb", "lib/rails_pwnerer/base/cpus.rb", "lib/rails_pwnerer/base/dirs.rb", "lib/rails_pwnerer/base/gems.rb", "lib/rails_pwnerer/base/hostname.rb", "lib/rails_pwnerer/base/input.rb", "lib/rails_pwnerer/base/packages.rb", "lib/rails_pwnerer/base/process.rb", "lib/rails_pwnerer/base/rails.rb", "lib/rails_pwnerer/base/startup.rb", "lib/rails_pwnerer/config/app.rb", "lib/rails_pwnerer/config/frontends.rb", "lib/rails_pwnerer/config/main.rb", "lib/rails_pwnerer/config/paths.rb", "lib/rails_pwnerer/config/ports.rb", "lib/rails_pwnerer/config/repository.rb", "lib/rails_pwnerer/ctl_executor.rb", "lib/rails_pwnerer/dev_executor.rb", "lib/rails_pwnerer/executor.rb", "lib/rails_pwnerer/scaffolds/config.rb", "lib/rails_pwnerer/scaffolds/dir_permissions.rb", "lib/rails_pwnerer/scaffolds/dirs.rb", "lib/rails_pwnerer/scaffolds/gems.rb", "lib/rails_pwnerer/scaffolds/hook_daemon.rb", "lib/rails_pwnerer/scaffolds/hook_dyndns.rb", "lib/rails_pwnerer/scaffolds/mysql_config.rb", "lib/rails_pwnerer/scaffolds/packages.rb", "lib/rails_pwnerer/scaffolds/rubygems.rb", "lib/rails_pwnerer/scaffolds/sshd.rb", "lib/rails_pwnerer/util/kill_process_set.rb", "lib/rails_pwnerer/util/main.rb"]
16
- s.files = ["CHANGELOG", "LICENSE", "Manifest", "README", "RUBYFORGE", "Rakefile", "bin/rpwn", "bin/rpwnctl", "bin/rpwndev", "ext/rpwn_setup_notice/extconf.rb", "lib/rails_pwnerer.rb", "lib/rails_pwnerer/app/cluster_config.rb", "lib/rails_pwnerer/app/config.rb", "lib/rails_pwnerer/app/db/mysql.rb", "lib/rails_pwnerer/app/files.rb", "lib/rails_pwnerer/app/gems.rb", "lib/rails_pwnerer/app/main.rb", "lib/rails_pwnerer/app/nginx_config.rb", "lib/rails_pwnerer/app/scripts.rb", "lib/rails_pwnerer/app/vcs/git.rb", "lib/rails_pwnerer/app/vcs/perforce.rb", "lib/rails_pwnerer/app/vcs/svn.rb", "lib/rails_pwnerer/base.rb", "lib/rails_pwnerer/base/atomics.rb", "lib/rails_pwnerer/base/cpus.rb", "lib/rails_pwnerer/base/dirs.rb", "lib/rails_pwnerer/base/gems.rb", "lib/rails_pwnerer/base/hostname.rb", "lib/rails_pwnerer/base/input.rb", "lib/rails_pwnerer/base/packages.rb", "lib/rails_pwnerer/base/process.rb", "lib/rails_pwnerer/base/rails.rb", "lib/rails_pwnerer/base/startup.rb", "lib/rails_pwnerer/config/app.rb", "lib/rails_pwnerer/config/frontends.rb", "lib/rails_pwnerer/config/main.rb", "lib/rails_pwnerer/config/paths.rb", "lib/rails_pwnerer/config/ports.rb", "lib/rails_pwnerer/config/repository.rb", "lib/rails_pwnerer/ctl_executor.rb", "lib/rails_pwnerer/dev_executor.rb", "lib/rails_pwnerer/executor.rb", "lib/rails_pwnerer/scaffolds/config.rb", "lib/rails_pwnerer/scaffolds/dir_permissions.rb", "lib/rails_pwnerer/scaffolds/dirs.rb", "lib/rails_pwnerer/scaffolds/gems.rb", "lib/rails_pwnerer/scaffolds/hook_daemon.rb", "lib/rails_pwnerer/scaffolds/hook_dyndns.rb", "lib/rails_pwnerer/scaffolds/mysql_config.rb", "lib/rails_pwnerer/scaffolds/packages.rb", "lib/rails_pwnerer/scaffolds/rubygems.rb", "lib/rails_pwnerer/scaffolds/sshd.rb", "lib/rails_pwnerer/util/kill_process_set.rb", "lib/rails_pwnerer/util/main.rb", "test/base_package_test.rb", "test/helper.rb", "rails_pwnerer.gemspec"]
12
+ s.executables = [%q{rpwn}, %q{rpwnctl}, %q{rpwndev}]
13
+ s.extensions = [%q{ext/rpwn_setup_notice/extconf.rb}]
14
+ s.extra_rdoc_files = [%q{CHANGELOG}, %q{LICENSE}, %q{README}, %q{bin/rpwn}, %q{bin/rpwnctl}, %q{bin/rpwndev}, %q{ext/rpwn_setup_notice/extconf.rb}, %q{lib/rails_pwnerer.rb}, %q{lib/rails_pwnerer/app/assets.rb}, %q{lib/rails_pwnerer/app/cluster_config.rb}, %q{lib/rails_pwnerer/app/config.rb}, %q{lib/rails_pwnerer/app/db/mysql.rb}, %q{lib/rails_pwnerer/app/files.rb}, %q{lib/rails_pwnerer/app/gems.rb}, %q{lib/rails_pwnerer/app/main.rb}, %q{lib/rails_pwnerer/app/nginx_config.rb}, %q{lib/rails_pwnerer/app/scripts.rb}, %q{lib/rails_pwnerer/app/vcs/git.rb}, %q{lib/rails_pwnerer/app/vcs/perforce.rb}, %q{lib/rails_pwnerer/app/vcs/svn.rb}, %q{lib/rails_pwnerer/base.rb}, %q{lib/rails_pwnerer/base/atomics.rb}, %q{lib/rails_pwnerer/base/cpus.rb}, %q{lib/rails_pwnerer/base/dirs.rb}, %q{lib/rails_pwnerer/base/gems.rb}, %q{lib/rails_pwnerer/base/hostname.rb}, %q{lib/rails_pwnerer/base/input.rb}, %q{lib/rails_pwnerer/base/packages.rb}, %q{lib/rails_pwnerer/base/process.rb}, %q{lib/rails_pwnerer/base/rails.rb}, %q{lib/rails_pwnerer/base/startup.rb}, %q{lib/rails_pwnerer/config/app.rb}, %q{lib/rails_pwnerer/config/frontends.rb}, %q{lib/rails_pwnerer/config/main.rb}, %q{lib/rails_pwnerer/config/paths.rb}, %q{lib/rails_pwnerer/config/ports.rb}, %q{lib/rails_pwnerer/config/repository.rb}, %q{lib/rails_pwnerer/ctl_executor.rb}, %q{lib/rails_pwnerer/dev_executor.rb}, %q{lib/rails_pwnerer/executor.rb}, %q{lib/rails_pwnerer/scaffolds/config.rb}, %q{lib/rails_pwnerer/scaffolds/dir_permissions.rb}, %q{lib/rails_pwnerer/scaffolds/dirs.rb}, %q{lib/rails_pwnerer/scaffolds/gems.rb}, %q{lib/rails_pwnerer/scaffolds/hook_daemon.rb}, %q{lib/rails_pwnerer/scaffolds/hook_dyndns.rb}, %q{lib/rails_pwnerer/scaffolds/mysql_config.rb}, %q{lib/rails_pwnerer/scaffolds/packages.rb}, %q{lib/rails_pwnerer/scaffolds/rubygems.rb}, %q{lib/rails_pwnerer/scaffolds/sshd.rb}, %q{lib/rails_pwnerer/util/kill_process_set.rb}, %q{lib/rails_pwnerer/util/main.rb}]
15
+ s.files = [%q{CHANGELOG}, %q{LICENSE}, %q{Manifest}, %q{README}, %q{RUBYFORGE}, %q{Rakefile}, %q{bin/rpwn}, %q{bin/rpwnctl}, %q{bin/rpwndev}, %q{ext/rpwn_setup_notice/extconf.rb}, %q{lib/rails_pwnerer.rb}, %q{lib/rails_pwnerer/app/assets.rb}, %q{lib/rails_pwnerer/app/cluster_config.rb}, %q{lib/rails_pwnerer/app/config.rb}, %q{lib/rails_pwnerer/app/db/mysql.rb}, %q{lib/rails_pwnerer/app/files.rb}, %q{lib/rails_pwnerer/app/gems.rb}, %q{lib/rails_pwnerer/app/main.rb}, %q{lib/rails_pwnerer/app/nginx_config.rb}, %q{lib/rails_pwnerer/app/scripts.rb}, %q{lib/rails_pwnerer/app/vcs/git.rb}, %q{lib/rails_pwnerer/app/vcs/perforce.rb}, %q{lib/rails_pwnerer/app/vcs/svn.rb}, %q{lib/rails_pwnerer/base.rb}, %q{lib/rails_pwnerer/base/atomics.rb}, %q{lib/rails_pwnerer/base/cpus.rb}, %q{lib/rails_pwnerer/base/dirs.rb}, %q{lib/rails_pwnerer/base/gems.rb}, %q{lib/rails_pwnerer/base/hostname.rb}, %q{lib/rails_pwnerer/base/input.rb}, %q{lib/rails_pwnerer/base/packages.rb}, %q{lib/rails_pwnerer/base/process.rb}, %q{lib/rails_pwnerer/base/rails.rb}, %q{lib/rails_pwnerer/base/startup.rb}, %q{lib/rails_pwnerer/config/app.rb}, %q{lib/rails_pwnerer/config/frontends.rb}, %q{lib/rails_pwnerer/config/main.rb}, %q{lib/rails_pwnerer/config/paths.rb}, %q{lib/rails_pwnerer/config/ports.rb}, %q{lib/rails_pwnerer/config/repository.rb}, %q{lib/rails_pwnerer/ctl_executor.rb}, %q{lib/rails_pwnerer/dev_executor.rb}, %q{lib/rails_pwnerer/executor.rb}, %q{lib/rails_pwnerer/scaffolds/config.rb}, %q{lib/rails_pwnerer/scaffolds/dir_permissions.rb}, %q{lib/rails_pwnerer/scaffolds/dirs.rb}, %q{lib/rails_pwnerer/scaffolds/gems.rb}, %q{lib/rails_pwnerer/scaffolds/hook_daemon.rb}, %q{lib/rails_pwnerer/scaffolds/hook_dyndns.rb}, %q{lib/rails_pwnerer/scaffolds/mysql_config.rb}, %q{lib/rails_pwnerer/scaffolds/packages.rb}, %q{lib/rails_pwnerer/scaffolds/rubygems.rb}, %q{lib/rails_pwnerer/scaffolds/sshd.rb}, %q{lib/rails_pwnerer/util/kill_process_set.rb}, %q{lib/rails_pwnerer/util/main.rb}, %q{test/base_package_test.rb}, %q{test/helper.rb}, %q{rails_pwnerer.gemspec}]
17
16
  s.homepage = %q{http://www.costan.us/rails_pwnage}
18
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rails_pwnerer", "--main", "README"]
19
- s.require_paths = ["lib", "ext"]
17
+ s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Rails_pwnerer}, %q{--main}, %q{README}]
18
+ s.require_paths = [%q{lib}, %q{ext}]
20
19
  s.rubyforge_project = %q{rails-pwnage}
21
- s.rubygems_version = %q{1.6.0}
20
+ s.rubygems_version = %q{1.8.4}
22
21
  s.summary = %q{Rails deployment hack.}
23
- s.test_files = ["test/base_package_test.rb"]
22
+ s.test_files = [%q{test/base_package_test.rb}]
24
23
 
25
24
  if s.respond_to? :specification_version then
26
25
  s.specification_version = 3
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: 179
4
+ hash: 177
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 90
10
- version: 0.6.90
9
+ - 91
10
+ version: 0.6.91
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-10 00:00:00 -04:00
19
- default_executable: bin/rpwn
18
+ date: 2011-07-01 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: zerg_support
@@ -91,6 +90,7 @@ extra_rdoc_files:
91
90
  - bin/rpwndev
92
91
  - ext/rpwn_setup_notice/extconf.rb
93
92
  - lib/rails_pwnerer.rb
93
+ - lib/rails_pwnerer/app/assets.rb
94
94
  - lib/rails_pwnerer/app/cluster_config.rb
95
95
  - lib/rails_pwnerer/app/config.rb
96
96
  - lib/rails_pwnerer/app/db/mysql.rb
@@ -146,6 +146,7 @@ files:
146
146
  - bin/rpwndev
147
147
  - ext/rpwn_setup_notice/extconf.rb
148
148
  - lib/rails_pwnerer.rb
149
+ - lib/rails_pwnerer/app/assets.rb
149
150
  - lib/rails_pwnerer/app/cluster_config.rb
150
151
  - lib/rails_pwnerer/app/config.rb
151
152
  - lib/rails_pwnerer/app/db/mysql.rb
@@ -192,7 +193,6 @@ files:
192
193
  - test/base_package_test.rb
193
194
  - test/helper.rb
194
195
  - rails_pwnerer.gemspec
195
- has_rdoc: true
196
196
  homepage: http://www.costan.us/rails_pwnage
197
197
  licenses: []
198
198
 
@@ -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.6.0
232
+ rubygems_version: 1.8.4
233
233
  signing_key:
234
234
  specification_version: 3
235
235
  summary: Rails deployment hack.