Class: Xssh::Aws::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/xssh/aws/config.rb

Instance Method Summary collapse

Constructor Details

#initialize(block) ⇒ Config

Returns a new instance of Config.



4
5
6
7
# File 'lib/xssh/aws/config.rb', line 4

def initialize(block)
  @cache = false
  instance_eval(&block)
end

Instance Method Details

#cache(mode = nil) ⇒ Object



9
10
11
12
13
# File 'lib/xssh/aws/config.rb', line 9

def cache(mode = nil)
  return @cache if mode == nil

  @cache = mode
end