Class: Logcli::Params::Session
- Inherits:
-
Object
- Object
- Logcli::Params::Session
- Defined in:
- lib/logcli/params/session.rb
Constant Summary collapse
- PATH =
:path
- GREP =
:grep
- HOST =
:host
- USER =
:user
- LOCAL_PATH =
:local_path
- SECRET_KEY =
:secret_key
- OPTS =
[PATH, GREP, HOST, USER, SECRET_KEY, LOCAL_PATH].freeze
Instance Method Summary collapse
- #action_params ⇒ Object
-
#initialize(opts) ⇒ Session
constructor
A new instance of Session.
- #scp_args ⇒ Object
- #ssh_args ⇒ Object
Constructor Details
Instance Method Details
#action_params ⇒ Object
28 29 30 |
# File 'lib/logcli/params/session.rb', line 28 def action_params {grep: grep, path: path} end |
#scp_args ⇒ Object
24 25 26 |
# File 'lib/logcli/params/session.rb', line 24 def scp_args [host, user, {config: true}] end |
#ssh_args ⇒ Object
20 21 22 |
# File 'lib/logcli/params/session.rb', line 20 def ssh_args [host, user, {config: true}] end |