Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Commit

Permalink
Issue #71 Basic support for docker provider
Browse files Browse the repository at this point in the history
Fixes #71
  • Loading branch information
electrofelix authored and hferentschik committed Sep 4, 2018
1 parent b59b8da commit 705f274
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/landrush/action/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module Common
'HashiCorp::VagrantVMwarefusion::Provider' => :vmware_fusion,
'VagrantPlugins::Parallels::Provider' => :parallels,
'VagrantPlugins::HyperV::Provider' => :hyperv,
'VagrantPlugins::DockerProvider::Provider' => :docker,
'Landrush::FakeProvider' => :fake_provider
}.freeze

Expand All @@ -20,6 +21,10 @@ def initialize(app, env)
@env = env
end

def docker?
provider == :docker
end

def virtualbox?
provider == :virtualbox
end
Expand Down
1 change: 1 addition & 0 deletions lib/landrush/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Plugin < Vagrant.plugin('2')
# Hooks for VirtualBox and HyperV providers
hook.before(VagrantPlugins::ProviderVirtualBox::Action::Network, pre_boot_actions)
hook.before(VagrantPlugins::HyperV::Action::WaitForIPAddress, pre_boot_actions)
hook.after(VagrantPlugins::DockerProvider::Action::Start, pre_boot_actions)
hook.after(Vagrant::Action::Builtin::WaitForCommunicator, post_boot_actions)

# Hooks for Libvirt provider
Expand Down

0 comments on commit 705f274

Please sign in to comment.