Class: Abaddon::Runner
- Inherits:
-
Object
- Object
- Abaddon::Runner
- Defined in:
- lib/abaddon/runner.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(args) ⇒ Runner
Returns a new instance of Runner.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/abaddon/runner.rb', line 9 def initialize(args) case args.first when 'help', '-h', '--help' Abaddon::Help.display when 'version', '-v', '--version' puts Abaddon::Information.version when 'new', 'create' Abaddon::Help. :not_found unless Abaddon.load args[1..args.size] else Abaddon::Help.display end end |