formatting

This commit is contained in:
Javan Makhmali 2011-07-31 09:33:16 -04:00
parent 15d91a3efd
commit 8bb0f04131
7 changed files with 3 additions and 11 deletions

View File

@ -3,6 +3,7 @@
require 'rubygems' require 'rubygems'
require 'optparse' require 'optparse'
require 'whenever' require 'whenever'
require 'whenever/version'
options = {} options = {}

View File

@ -3,7 +3,6 @@ require 'tempfile'
module Whenever module Whenever
class CommandLine class CommandLine
def self.execute(options={}) def self.execute(options={})
new(options).run new(options).run
end end
@ -130,6 +129,5 @@ module Whenever
def comment_close def comment_close
"# End #{comment_base}" "# End #{comment_base}"
end end
end end
end end

View File

@ -142,7 +142,6 @@ module Whenever
output[0, max_occurances].join(',') output[0, max_occurances].join(',')
end end
end end
end end
end end

View File

@ -1,6 +1,5 @@
module Whenever module Whenever
class Job class Job
attr_reader :at attr_reader :at
def initialize(options = {}) def initialize(options = {})
@ -42,6 +41,5 @@ module Whenever
def escape_double_quotes(str) def escape_double_quotes(str)
str.gsub(/"/) { '\"' } str.gsub(/"/) { '\"' }
end end
end end
end end

View File

@ -1,6 +1,5 @@
module Whenever module Whenever
class JobList class JobList
def initialize(options) def initialize(options)
@jobs, @env, @set_variables, @pre_set_variables = {}, {}, {}, {} @jobs, @env, @set_variables, @pre_set_variables = {}, {}, {}, {}
@ -143,6 +142,5 @@ module Whenever
shortcut_jobs.join + combine(regular_jobs).join shortcut_jobs.join + combine(regular_jobs).join
end end
end end
end end

View File

@ -1,7 +1,6 @@
module Whenever module Whenever
module Output module Output
class Redirection class Redirection
def initialize(output) def initialize(output)
@output = output @output = output
end end
@ -52,7 +51,6 @@ module Whenever
def redirect_from_string def redirect_from_string
">> #{@output} 2>&1" ">> #{@output} 2>&1"
end end
end end
end end
end end