Class: Kitchen::Command::Login

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

Overview

Command to log into to instance.

Author:

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.



27
28
29
30
31
32
33
34
35
36
# File 'lib/kitchen/command/login.rb', line 27

def call
  results = parse_subcommand(args.first)
  if results.size > 1
    die "Argument `#{args.first}' returned multiple results:\n" +
      results.map { |i| "  * #{i.name}" }.join("\n")
  end
  instance = results.pop

  instance.
end