class Sshster::App
Attributes
options[RW]
Public Class Methods
new(options)
click to toggle source
# File lib/sshster/app.rb, line 10 def initialize(options) @options = options end
Public Instance Methods
action_compose()
click to toggle source
# File lib/sshster/app.rb, line 27 def action_compose action_init Actions::Compose.new(config).run end
action_help()
click to toggle source
# File lib/sshster/app.rb, line 32 def action_help Actions::Help.new.run end
action_init()
click to toggle source
# File lib/sshster/app.rb, line 23 def action_init Actions::Init.new(config).run end
run()
click to toggle source
# 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
Private Instance Methods
command()
click to toggle source
# File lib/sshster/app.rb, line 42 def command @command ||= @options.command end
config()
click to toggle source
# File lib/sshster/app.rb, line 38 def config @config ||= Config.new(options.config).merge end