Class: Albacore::Cli

Inherits:
Object
  • Object
show all
Includes:
CliDSL
Defined in:
lib/albacore/cli.rb

Instance Method Summary collapse

Methods included from CliDSL

included

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