Class: Armrest::CLI

Inherits:
Command show all
Defined in:
lib/armrest/cli.rb,
lib/armrest/cli/auth.rb,
lib/armrest/cli/base.rb,
lib/armrest/cli/help.rb,
lib/armrest/cli/secret.rb,
lib/armrest/cli/blob_service.rb,
lib/armrest/cli/blob_container.rb,
lib/armrest/cli/resource_group.rb,
lib/armrest/cli/storage_account.rb

Defined Under Namespace

Modules: Help Classes: Auth, Base, BlobContainer, BlobService, ResourceGroup, Secret, StorageAccount

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, exit_on_failure?, website

Instance Method Details

#auth(type = nil) ⇒ Object



28
29
30
# File 'lib/armrest/cli.rb', line 28

def auth(type=nil)
  Auth.new(options.merge(type: type)).run
end

#completion(*params) ⇒ Object



34
35
36
# File 'lib/armrest/cli.rb', line 34

def completion(*params)
  Completer.new(CLI, *params).run
end

#completion_scriptObject



40
41
42
# File 'lib/armrest/cli.rb', line 40

def completion_script
  Completer::Script.generate
end

#versionObject



45
46
47
# File 'lib/armrest/cli.rb', line 45

def version
  puts VERSION
end