Module: Local
- Defined in:
- lib/fog/local/bin.rb
Instance Method Summary collapse
Instance Method Details
#[](service) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/local/bin.rb', line 9 def [](service) @@connections ||= Hash.new do |hash, key| credentials = Fog.credentials.reject do |k,v| ![:local_root].include?(k) end hash[key] = case key when :files Fog::Local.new(credentials) end end @@connections[service] end |
#directories ⇒ Object
22 23 24 |
# File 'lib/fog/local/bin.rb', line 22 def directories self[:files].directories end |
#initialized? ⇒ Boolean
5 6 7 |
# File 'lib/fog/local/bin.rb', line 5 def initialized? true end |