Class: Vagrant::Action::Destroy

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-dnsmasq/actions.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ Destroy

Returns a new instance of Destroy.



61
62
63
64
65
66
67
68
69
70
# File 'lib/vagrant-dnsmasq/actions.rb', line 61

def initialize(app, env)
  inc_path = Pathname.new(File.expand_path("../includes", __FILE__))
  require inc_path.join("Domain.class.rb")
  require inc_path.join("Ip.class.rb")
  require inc_path.join("Dnsmasq.class.rb")
  require inc_path.join("Resolver.class.rb")
  require inc_path.join("helper.rb")

  @app = app
end

Instance Method Details

#call(env) ⇒ Object



72
73
74
75
# File 'lib/vagrant-dnsmasq/actions.rb', line 72

def call(env)
  # @todo delete from dnsmasq.conf and /etc/resolver
  @app.call(env)
end