Method: Fog::Compute::Joyent::Mock#get_dataset

Defined in:
lib/fog/joyent/requests/compute/get_dataset.rb

#get_dataset(id) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/fog/joyent/requests/compute/get_dataset.rb', line 6

def get_dataset(id)
  if ds = self.data[:datasets][id]
    res = Excon::Response.new
    res.status = 200
    res.body = ds
  else
    raise Excon::Errors::NotFound
  end
end