Class: Vagrant::Action::Destroy
- Defined in:
- lib/vagrant-dnsmasq/actions.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Destroy
constructor
A new instance of Destroy.
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.("../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 |