Skip to content

Commit

Permalink
Added default value to output redirection option (empty string)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Boisard committed Dec 19, 2012
1 parent 61275d7 commit 04c7595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whenever/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initialize(options = {})
@template = options.delete(:template)
@job_template = options.delete(:job_template) || ":job"
@roles = Array.wrap(options.delete(:roles))
@options[:output] = Whenever::Output::Redirection.new(options[:output]).to_s if options.has_key?(:output)
@options[:output] = options.has_key?(:output) ? Whenever::Output::Redirection.new(options[:output]).to_s : ''
@options[:environment] ||= :production
@options[:path] = Shellwords.shellescape(@options[:path] || Whenever.path)
end
Expand Down

0 comments on commit 04c7595

Please sign in to comment.