Class: Kitchen::Command::Package

Inherits:
Base
  • Object
show all
Defined in:
lib/kitchen/command/package.rb

Overview

Execute command on remote instance.

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Logging

#banner, #debug, #error, #fatal, #info, #warn

Constructor Details

This class inherits a constructor from Kitchen::Command::Base

Instance Method Details

#callObject

Invoke the command.


23
24
25
26
27
28
29
# File 'lib/kitchen/command/package.rb', line 23

def call
  results = parse_subcommand(args.first)
  results.each do |instance|
    banner "Package on #{instance.name}."
    instance.package_action
  end
end