Class: Sshster::App
- Inherits:
-
Object
- Object
- Sshster::App
- Defined in:
- lib/sshster/app.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #action_compose ⇒ Object
- #action_help ⇒ Object
- #action_init ⇒ Object
-
#initialize(options) ⇒ App
constructor
A new instance of App.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ App
Returns a new instance of App.
10 11 12 |
# File 'lib/sshster/app.rb', line 10 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/sshster/app.rb', line 8 def @options end |
Instance Method Details
#action_compose ⇒ Object
27 28 29 30 |
# File 'lib/sshster/app.rb', line 27 def action_compose action_init Actions::Compose.new(config).run end |
#action_help ⇒ Object
32 33 34 |
# File 'lib/sshster/app.rb', line 32 def action_help Actions::Help.new.run end |
#action_init ⇒ Object
23 24 25 |
# File 'lib/sshster/app.rb', line 23 def action_init Actions::Init.new(config).run end |
#run ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/sshster/app.rb', line 14 def run case command when :init then action_init when :compose then action_compose when :help then action_help else action_help end end |