class Ec2ssh::Command::Base
Attributes
cli[R]
Public Class Methods
new(cli)
click to toggle source
# File lib/ec2ssh/command.rb, line 8 def initialize(cli) @cli = cli end
Public Instance Methods
dotfile()
click to toggle source
# File lib/ec2ssh/command.rb, line 12 def dotfile @dotfile ||= Ec2ssh::Dsl::Parser.parse_file(dotfile_path) end
dotfile_path()
click to toggle source
# File lib/ec2ssh/command.rb, line 20 def dotfile_path cli.options.dotfile end
ssh_config_path()
click to toggle source
# File lib/ec2ssh/command.rb, line 16 def ssh_config_path cli.options.path || dotfile.path || "#{ENV['HOME']}/.ssh/config" end