Class: BackItUp::Command
- Inherits:
-
Object
- Object
- BackItUp::Command
- Defined in:
- lib/back_it_up/command.rb
Class Method Summary collapse
Class Method Details
.run!(args = ARGV) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/back_it_up/command.rb', line 5 def self.run!(args=ARGV) filename = args.shift if filename == nil || filename == "" usage else BackItUp::Runner.new(filename) end end |
.usage ⇒ Object
15 16 17 |
# File 'lib/back_it_up/command.rb', line 15 def self.usage puts "Usage: backitup config-file" end |