Class: Mrsk::Cli::Registry

Inherits:
Base
  • Object
show all
Defined in:
lib/mrsk/cli/registry.rb

Instance Method Summary collapse

Methods inherited from Base

exit_on_failure?, #initialize

Constructor Details

This class inherits a constructor from Mrsk::Cli::Base

Instance Method Details

#loginObject



3
4
5
6
7
8
9
# File 'lib/mrsk/cli/registry.rb', line 3

def 
  run_locally    { execute *MRSK.registry. }
  on(MRSK.hosts) { execute *MRSK.registry. }
# FIXME: This rescue needed?
rescue ArgumentError => e
  puts e.message
end

#logoutObject



12
13
14
15
16
17
# File 'lib/mrsk/cli/registry.rb', line 12

def logout
  on(MRSK.hosts) { execute *MRSK.registry.logout }
# FIXME: This rescue needed?
rescue ArgumentError => e
  puts e.message
end