Sha256: 2e6443db3dd362c6ee595ac565dd5a948fadad9ba58cf93e08f5b415eb03e1aa
Contents?: true
Size: 428 Bytes
Versions: 1
Compression:
Stored size: 428 Bytes
Contents
module Alternator class CLI attr_accessor :arguments, :action def initialize(arguments) @arguments = arguments end def action @action ||= action_class_const.new action_arguments end def action_class_const Alternator::Actions.const_get(arguments.first.capitalize) end def action_arguments arguments.drop(1) end def run action.execute end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alternator-0.0.2 | lib/alternator/cli.rb |