Class: Omnizip::ProfileCommands

Inherits:
Thor
  • Object
show all
Extended by:
Shared::HelpDispatch
Includes:
Shared
Defined in:
lib/omnizip/cli.rb

Overview

Profile commands subcommand group

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Shared::HelpDispatch

dispatch

Methods included from Shared

#format_bytes, #handle_error

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


79
80
81
# File 'lib/omnizip/cli.rb', line 79

def exit_on_failure?
  true
end

Instance Method Details

#listObject



97
98
99
100
101
# File 'lib/omnizip/cli.rb', line 97

def list
  Omnizip::Commands::ProfileListCommand.new(options).run
rescue StandardError => e
  handle_error(e)
end

#show(profile_name) ⇒ Object



115
116
117
118
119
# File 'lib/omnizip/cli.rb', line 115

def show(profile_name)
  Omnizip::Commands::ProfileShowCommand.new(options).run(profile_name)
rescue StandardError => e
  handle_error(e)
end