Class: Albacore::Cli
Instance Method Summary collapse
-
#initialize(args) ⇒ Cli
constructor
A new instance of Cli.
Methods included from CliDSL
Constructor Details
#initialize(args) ⇒ Cli
Returns a new instance of Cli.
9 10 11 12 13 14 |
# File 'lib/albacore/cli.rb', line 9 def initialize args # Run a semver command. Raise a CommandError if the command does not exist. # Expects an array of commands, such as ARGV. @args = args run_command(@args.shift || :help) end |