auser-poolparty 0.2.52 → 0.2.53

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/bin/cloud-provision CHANGED
@@ -5,7 +5,7 @@ require "poolpartycl"
5
5
 
6
6
  o = PoolParty::Optioner.new(ARGV) do |opts, optioner|
7
7
  opts.on('-p', '--slave', 'Provision slave (default: false)') { optioner.provision_slave true }
8
- opts.on('-i num', '--id num', 'Instance num to provision') { |i| optioner.instance_num i }
8
+ opts.on('-i num', '--id num', 'Instance num to provision') { |i| optioner.instance_number i }
9
9
  end
10
10
 
11
11
  o.loaded_clouds.each do |cloud|
@@ -16,7 +16,7 @@ o.loaded_clouds.each do |cloud|
16
16
 
17
17
  vputs "Running #{command}"
18
18
 
19
- Kernel.system "exec #{command}" unless testing
19
+ Kernel.system "#{command}" unless testing
20
20
  end
21
21
 
22
22
  end
@@ -16,7 +16,7 @@ o.loaded_clouds.each do |cloud|
16
16
 
17
17
  vputs "Running #{command}"
18
18
 
19
- Kernel.system "exec #{command}" unless testing
19
+ Kernel.system "#{command}" unless testing
20
20
  end
21
21
 
22
22
  end
@@ -15,7 +15,7 @@ available_monitors = PoolParty::Monitors.available_monitors
15
15
 
16
16
  o.loaded_clouds.each do |cloud|
17
17
 
18
- with_cloud(cloud, {:testing => o.testing, :hostname => @hostname, :noshell => o.noshell }) do
18
+ with_cloud(cloud) do
19
19
  # TODO: Change this to be app specfic
20
20
  # SECURITY RISK
21
21
 
@@ -24,7 +24,7 @@ o.loaded_clouds.each do |cloud|
24
24
 
25
25
  vputs "Running #{command}"
26
26
 
27
- Kernel.system "exec #{command}" unless testing
27
+ Kernel.system "#{command}" unless testing
28
28
  end
29
29
 
30
30
  end
@@ -26,7 +26,7 @@ module PoolParty
26
26
  # Service is required
27
27
  has_service(:name => "haproxy", :ensures => "running")
28
28
 
29
- has_exec(:name => "reloadhaproxy", :command => "/etc/init.d/haproxy reload", :requires => get_package("haproxy"))
29
+ # has_exec(:name => "reloadhaproxy", :command => "/etc/init.d/haproxy reload", :requires => get_package("haproxy"))
30
30
 
31
31
  # These can also be passed in via hash
32
32
  has_remotefile(:name => "/etc/haproxy.cfg") do
@@ -33,6 +33,7 @@ module PoolParty
33
33
 
34
34
  def run_once_and_clean
35
35
  <<-EOS
36
+ rm -rf /etc/puppet/ssl
36
37
  . /etc/profile && /usr/sbin/puppetd --onetime --no-daemonize --logdest syslog --server master #{unix_hide_string}
37
38
  rm -rf /etc/puppet/ssl
38
39
  EOS
@@ -21,7 +21,7 @@ module PoolParty
21
21
 
22
22
  def self.register_monitor(*args)
23
23
  args.each do |arg|
24
- (available_monitors << "#{arg}".downcase.to_sym)
24
+ (available_monitors << "#{arg}".downcase.to_sym unless available_monitors.include?("#{arg}".downcase.to_sym))
25
25
 
26
26
  InstanceMethods.module_eval "def #{arg}; @#{arg} ||= messenger_send!(\"get_current_load #{arg}\").to_f rescue -1.0; end"
27
27
  end
@@ -2,7 +2,7 @@ module PoolParty
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 52
5
+ TINY = 53
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/poolparty.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poolparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.52
4
+ version: 0.2.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ari Lerner
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-10 00:00:00 -08:00
12
+ date: 2008-11-11 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auser-poolparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.52
4
+ version: 0.2.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ari Lerner
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-10 00:00:00 -08:00
12
+ date: 2008-11-11 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency