Moved more code out of the bin and into the CommandLine class. Bumped to 0.1.7
This commit is contained in:
parent
841c5a4a4a
commit
b2f282ce2e
@ -1,4 +1,4 @@
|
|||||||
== 0.1.6 / March 5th, 2009
|
== 0.1.7 / March 5th, 2009
|
||||||
|
|
||||||
* Added ability to update the crontab file non-destuctively instead of only overwriting it. [Javan Makhmali -- Inspired by code submitted individually from: Tien Dung (tiendung), Tom Lea (cwninja), Kyle Maxwell (fizx), and Andrew Timberlake (andrewtimberlake) on github]
|
* Added ability to update the crontab file non-destuctively instead of only overwriting it. [Javan Makhmali -- Inspired by code submitted individually from: Tien Dung (tiendung), Tom Lea (cwninja), Kyle Maxwell (fizx), and Andrew Timberlake (andrewtimberlake) on github]
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ In a Rails (2.1 or greater) application:
|
|||||||
in your "config/environment.rb" file:
|
in your "config/environment.rb" file:
|
||||||
|
|
||||||
Rails::Initializer.run do |config|
|
Rails::Initializer.run do |config|
|
||||||
config.gem 'javan-whenever', :lib => false, :version => '>= 0.1.6' :source => 'http://gems.github.com'
|
config.gem 'javan-whenever', :lib => false, :version => '>= 0.1.7' :source => 'http://gems.github.com'
|
||||||
end
|
end
|
||||||
|
|
||||||
To install this gem (and all other missing gem dependencies), run rake gems:install (use sudo if necessary).
|
To install this gem (and all other missing gem dependencies), run rake gems:install (use sudo if necessary).
|
||||||
|
@ -26,9 +26,4 @@ OptionParser.new do |opts|
|
|||||||
end
|
end
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
if options[:update] || options[:write]
|
Whenever::CommandLine.execute(options)
|
||||||
Whenever::CommandLine.execute(options)
|
|
||||||
else
|
|
||||||
puts Whenever.cron(:file => options[:file])
|
|
||||||
exit
|
|
||||||
end
|
|
@ -27,6 +27,9 @@ module Whenever
|
|||||||
write_crontab(updated_crontab)
|
write_crontab(updated_crontab)
|
||||||
elsif @options[:write]
|
elsif @options[:write]
|
||||||
write_crontab(whenever_cron)
|
write_crontab(whenever_cron)
|
||||||
|
else
|
||||||
|
puts Whenever.cron(:file => @options[:file])
|
||||||
|
exit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ module Whenever
|
|||||||
module VERSION #:nodoc:
|
module VERSION #:nodoc:
|
||||||
MAJOR = 0
|
MAJOR = 0
|
||||||
MINOR = 1
|
MINOR = 1
|
||||||
TINY = 6
|
TINY = 7
|
||||||
|
|
||||||
STRING = [MAJOR, MINOR, TINY].join('.')
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
||||||
end
|
end
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = %q{whenever}
|
s.name = %q{whenever}
|
||||||
s.version = "0.1.6"
|
s.version = "0.1.7"
|
||||||
|
|
||||||
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
||||||
s.authors = ["Javan Makhmali"]
|
s.authors = ["Javan Makhmali"]
|
||||||
|
Loading…
Reference in New Issue
Block a user