Class: Cli
- Inherits:
-
Thor
- Object
- Thor
- Cli
- Defined in:
- lib/sty/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #account(path) ⇒ Object
- #console ⇒ Object
- #info ⇒ Object
- #login(path) ⇒ Object
- #logout ⇒ Object
- #proxy(px = nil) ⇒ Object
- #ssh(*search_term) ⇒ Object
- #ssm(*search_term) ⇒ Object
Class Method Details
.basename ⇒ Object
12 13 14 |
# File 'lib/sty/cli.rb', line 12 def self.basename 'sty' end |
Instance Method Details
#account(path) ⇒ Object
56 57 58 |
# File 'lib/sty/cli.rb', line 56 def account(path) Info.new.account_info(path) end |
#console ⇒ Object
33 34 35 |
# File 'lib/sty/cli.rb', line 33 def console Console.new.action([:browser], [:incognito], [:logout]) end |
#info ⇒ Object
51 52 53 |
# File 'lib/sty/cli.rb', line 51 def info Info.new.session_info end |
#login(path) ⇒ Object
39 40 41 42 |
# File 'lib/sty/cli.rb', line 39 def login(path) source_run(__method__) Auth.new.login(path, [:role]) end |
#logout ⇒ Object
45 46 47 48 |
# File 'lib/sty/cli.rb', line 45 def logout source_run(__method__) Auth.new.logout end |
#proxy(px = nil) ⇒ Object
61 62 63 64 |
# File 'lib/sty/cli.rb', line 61 def proxy(px = nil) source_run(__method__) Proxy.new.action(px) end |