Sha256: 10010d5de3a53fa8b65a199feedf02de1ad3d4ad573d4ca772b804c6d225315d

Contents?: true

Size: 1.3 KB

Versions: 6

Compression:

Stored size: 1.3 KB

Contents

require "sfn"

module Sfn
  class Config
    # Inspect command configuration
    class Inspect < Config
      attribute(
        :attribute, String,
        :multiple => true,
        :description => "Dot delimited attribute to view",
        :short_flag => "a",
      )
      attribute(
        :nodes, [TrueClass, FalseClass],
        :description => "Locate all instances and display addresses",
        :short_flag => "n",
      )
      attribute(
        :load_balancers, [TrueClass, FalseClass],
        :description => "Locate all load balancers, display addresses and server states",
        :short_flag => "l",
      )
      attribute(
        :instance_failure, [TrueClass, FalseClass],
        :description => "Display log file error from failed not if possible",
        :short_flag => "N",
      )
      attribute(
        :failure_log_path, String,
        :description => "Path to remote log file for display on failure",
        :default => "/var/log/chef/client.log",
        :short_flag => "f",
      )
      attribute(
        :identity_file, String,
        :description => "SSH identity file for authentication",
        :short_flag => "D",
      )
      attribute(
        :ssh_user, String,
        :description => "SSH username for inspection connect",
        :short_flag => "s",
      )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sfn-3.1.8 lib/sfn/config/inspect.rb
sfn-3.1.6 lib/sfn/config/inspect.rb
sfn-3.1.4 lib/sfn/config/inspect.rb
sfn-3.1.2 lib/sfn/config/inspect.rb
sfn-3.1.0 lib/sfn/config/inspect.rb
sfn-3.0.32 lib/sfn/config/inspect.rb