Class: Appshot::DM

Inherits:
Object
  • Object
show all
Defined in:
lib/appshot/filesystem/dm.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ DM

Returns a new instance of DM.



5
6
7
8
# File 'lib/appshot/filesystem/dm.rb', line 5

def initialize(opts={})
  @mount_point = Pathname.new(opts[:mount_point] || "")
  validate_mount_point(@mount_point)
end

Instance Method Details

#call(call_chain = []) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/appshot/filesystem/dm.rb', line 10

def call(call_chain=[])
  next_action = call_chain.shift

  freeze
  next_action.call(call_chain) unless next_action.nil?
ensure
  unfreeze
end