Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Commit

Permalink
Compatibility fix for Ruby 1.9.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkistner committed Feb 26, 2014
1 parent 7ab1dd2 commit 81f46d6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/foreman_god/god_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@
require 'god'
require 'foreman_god'
require 'etc'
require 'stringio'

module God

old_stderr = $stderr
$stderr = ::StringIO.new
Watch::VALID_STATES += [:stop] unless Watch::VALID_STATES.include? :stop
$stderr = old_stderr
Watch::VALID_STATES << :stop unless Watch::VALID_STATES.include? :stop

module Conditions
class ForemanStopFileDoesntExist < PollCondition
Expand Down

0 comments on commit 81f46d6

Please sign in to comment.