Class: Omnizip::ProfileCommands

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

Overview

Profile commands subcommand group

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Cli::Shared

#format_bytes, #handle_error

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/omnizip/cli.rb', line 27

def exit_on_failure?
  true
end

Instance Method Details

#listObject



45
46
47
48
49
# File 'lib/omnizip/cli.rb', line 45

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

#show(profile_name) ⇒ Object



63
64
65
66
67
# File 'lib/omnizip/cli.rb', line 63

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