rubber 2.0.3 → 2.0.4

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.
@@ -5,7 +5,7 @@ rvm:
5
5
  - 1.9.3
6
6
  - jruby-18mode
7
7
  - jruby-19mode
8
- - jruby-head
8
+ # - jruby-head
9
9
  # - rbx-18mode
10
10
  # - rbx-19mode
11
11
  # script: bundle exec rspec spec
@@ -1,4 +1,4 @@
1
1
  module Rubber
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
3
3
  end
4
4
 
@@ -35,6 +35,8 @@ NameVirtualHost *:<%= rubber_env.web_tools_ssl_port %>
35
35
  # SSLCertificateKeyFile <%= Rubber.root %>/config/<%= rubber_env.domain %>.key
36
36
  # SSLCertificateChainFile /etc/ssl/certs/gd_intermediate_bundle.crt
37
37
 
38
+ RequestHeader set X_FORWARDED_PROTO "https"
39
+
38
40
  <Location />
39
41
  AuthType Basic
40
42
  AuthName "Rubber Admin Tools"
@@ -95,6 +97,8 @@ NameVirtualHost *:<%= rubber_env.web_tools_ssl_port %>
95
97
  # SSLCertificateKeyFile <%= Rubber.root %>/config/<%= rubber_env.domain %>.key
96
98
  # SSLCertificateChainFile /etc/ssl/certs/gd_intermediate_bundle.crt
97
99
 
100
+ RequestHeader set X_FORWARDED_PROTO "https"
101
+
98
102
  <Location />
99
103
  AuthType Basic
100
104
  AuthName "Rubber Admin Tools"
@@ -7,7 +7,7 @@
7
7
  ping_hosts = rubber_instances.collect {|ic| ic.full_name }.select {|h| h != rubber_env.full_host }
8
8
  elsif rubber_instances[rubber_env.host].role_names.include?('web_tools')
9
9
  # monitor just graphite_server from tools
10
- ping_hosts = Array(rubber_instances.for_role('graphite_server').first.full_name rescue nil)
10
+ ping_hosts = Array((rubber_instances.for_role('graphite_server').first.full_name rescue nil))
11
11
  end
12
12
 
13
13
  @skip = (ping_hosts.size == 0)
@@ -1,12 +1,7 @@
1
- require 'yaml'
2
- require 'resque'
3
-
4
- rails_root = ENV['RAILS_ROOT'] || File.dirname(__FILE__) + '/../..'
5
- rails_env = ENV['RAILS_ENV'] || 'development'
6
1
 
7
2
  redis_host = 'localhost:6379'
8
3
 
9
- resque_yml = rails_root + '/config/resque.yml'
4
+ resque_yml = Rubber.root + '/config/resque.yml'
10
5
  if File.exist? resque_yml
11
6
  resque_config = YAML.load_file(resque_yml)
12
7
  redis_host = resque_config[rails_env]
@@ -0,0 +1,6 @@
1
+ # This file is used by Rack-based servers to start resque web
2
+ # we load environment to get the rails environment, because plugins
3
+ # like resque-retry reference job classes from one's environment within
4
+ # the web ui
5
+ require ::File.expand_path('../environment', __FILE__)
6
+ run Resque::Server
@@ -8,7 +8,7 @@ start on started redis
8
8
  stop on runlevel [016]
9
9
 
10
10
  script
11
- exec sudo -u <%= rubber_env.app_user %> /bin/bash -l -c 'cd <%= Rubber.root %> && exec bundle exec resque-web --foreground --port <%= rubber_env.resque_web_port %> --no-launch --app-dir tmp/resque_web config/initializers/resque.rb > log/resque-web.log 2>&1'
11
+ exec sudo -u <%= rubber_env.app_user %> /bin/bash -l -c 'cd <%= Rubber.root %> && exec bundle exec puma --port <%= rubber_env.resque_web_port %> config/resque-web.ru &>> log/resque-web.log'
12
12
  end script
13
13
 
14
14
  post-start script
@@ -14,7 +14,10 @@ web_tools_proxies:
14
14
  role: resque_web
15
15
  port: "#{resque_web_port}"
16
16
  path: /
17
+
18
+ roles:
19
+ resque_web:
20
+ gems: [puma]
17
21
 
18
22
  role_dependencies:
19
23
  web_tools: [resque_web]
20
-
@@ -1,2 +1,3 @@
1
- append_to_file 'Gemfile', "gem 'resque'\n" if Rubber::Util::is_bundler?
1
+ append_to_file 'Gemfile', "gem 'resque', :require => 'resque/server'\n" if Rubber::Util::is_bundler?
2
2
  append_to_file 'Gemfile', "gem 'resque-pool'\n" if Rubber::Util::is_bundler?
3
+ append_to_file 'Gemfile', "gem 'puma'\n" if Rubber::Util::is_bundler?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubber
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-05-11 00:00:00.000000000 Z
13
+ date: 2012-05-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano
@@ -528,6 +528,7 @@ files:
528
528
  - templates/redis/templates.yml
529
529
  - templates/resque/config/initializers/resque.rb
530
530
  - templates/resque/config/resque-pool.yml
531
+ - templates/resque/config/resque-web.ru
531
532
  - templates/resque/config/rubber/common/resque.yml
532
533
  - templates/resque/config/rubber/deploy-resque.rb
533
534
  - templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
@@ -609,7 +610,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
609
610
  version: '0'
610
611
  segments:
611
612
  - 0
612
- hash: -2032687907343408495
613
+ hash: -689394664553774018
613
614
  required_rubygems_version: !ruby/object:Gem::Requirement
614
615
  none: false
615
616
  requirements:
@@ -618,12 +619,46 @@ required_rubygems_version: !ruby/object:Gem::Requirement
618
619
  version: '0'
619
620
  segments:
620
621
  - 0
621
- hash: -2032687907343408495
622
+ hash: -689394664553774018
622
623
  requirements: []
623
624
  rubyforge_project: rubber
624
- rubygems_version: 1.8.23
625
+ rubygems_version: 1.8.21
625
626
  signing_key:
626
627
  specification_version: 3
627
628
  summary: A capistrano plugin for managing multi-instance deployments to the cloud
628
629
  (ec2)
629
- test_files: []
630
+ test_files:
631
+ - test/cloud/aws_table_store_test.rb
632
+ - test/cloud/aws_test.rb
633
+ - test/cloud/fog_storage_test.rb
634
+ - test/cloud/fog_test.rb
635
+ - test/command_test.rb
636
+ - test/dns/fog_test.rb
637
+ - test/environment_test.rb
638
+ - test/fixtures/basic/common/bar.conf
639
+ - test/fixtures/basic/common/foo.conf
640
+ - test/fixtures/basic/host/host1/foo.conf
641
+ - test/fixtures/basic/host/host2/foo.conf
642
+ - test/fixtures/basic/role/role1/foo.conf
643
+ - test/fixtures/basic/role/role2/foo.conf
644
+ - test/fixtures/basic/rubber-extra.yml
645
+ - test/fixtures/basic/rubber.yml
646
+ - test/fixtures/expansion/rubber.yml
647
+ - test/fixtures/generator_order/common/a_first.conf
648
+ - test/fixtures/generator_order/common/z_last.conf
649
+ - test/fixtures/generator_order/host/host1/a_first.conf
650
+ - test/fixtures/generator_order/host/host1/z_last.conf
651
+ - test/fixtures/generator_order/role/role1/a_first.conf
652
+ - test/fixtures/generator_order/role/role1/z_last.conf
653
+ - test/fixtures/generator_order/role/role2/a_first.conf
654
+ - test/fixtures/generator_order/role/role2/z_last.conf
655
+ - test/fixtures/instance_expansion/instance-test.yml
656
+ - test/fixtures/instance_expansion/rubber.yml
657
+ - test/fixtures/nested/rubber.yml
658
+ - test/fixtures/secret/rubber.yml
659
+ - test/fixtures/secret/secret.yml
660
+ - test/generator_test.rb
661
+ - test/instance_test.rb
662
+ - test/test-rails-template.rb
663
+ - test/test_helper.rb
664
+ - test/util_test.rb