Class: Omnizip::ProfileCommands

Inherits:
Thor
  • Object
show all
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

#format_bytes, #handle_error

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/omnizip/cli.rb', line 56

def exit_on_failure?
  true
end

Instance Method Details

#listObject



74
75
76
77
78
# File 'lib/omnizip/cli.rb', line 74

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

#show(profile_name) ⇒ Object



92
93
94
95
96
# File 'lib/omnizip/cli.rb', line 92

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