right_agent 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -140,6 +140,7 @@ module RightScale
140
140
  AgentConfig.root_dir = options[:root_dir]
141
141
  AgentConfig.pid_dir = options[:pid_dir]
142
142
  Log.program_name = syslog_program_name(options)
143
+ Log.facility = syslog_facility(options)
143
144
  Log.log_to_file_only(options[:log_to_file_only])
144
145
  configure_proxy(options[:http_proxy], options[:http_no_proxy]) if options[:http_proxy]
145
146
  elsif options[:identity]
@@ -445,6 +446,17 @@ module RightScale
445
446
  'RightAgent'
446
447
  end
447
448
 
449
+ # Determine syslog facility based on options
450
+ #
451
+ # === Parameters
452
+ # options(Hash):: Command line options
453
+ #
454
+ # === Return
455
+ # (String):: 'local0'
456
+ def syslog_facility(options)
457
+ 'local0'
458
+ end
459
+
448
460
  # Determine configuration settings for this agent and persist them if needed
449
461
  # Reuse existing agent identity when possible
450
462
  #
data/right_agent.gemspec CHANGED
@@ -24,7 +24,7 @@ require 'rubygems'
24
24
 
25
25
  Gem::Specification.new do |spec|
26
26
  spec.name = 'right_agent'
27
- spec.version = '0.9.7'
27
+ spec.version = '0.9.8'
28
28
  spec.date = '2012-04-04'
29
29
  spec.authors = ['Lee Kirchhoff', 'Raphael Simon', 'Tony Spataro']
30
30
  spec.email = 'lee@rightscale.com'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_agent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
4
+ hash: 43
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 7
10
- version: 0.9.7
9
+ - 8
10
+ version: 0.9.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lee Kirchhoff