You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
590 B
25 lines
590 B
module VagrantPlugins
|
|
module ProviderLxd
|
|
module Action
|
|
class EnsureSsh
|
|
def initialize(app, env)
|
|
@app = app
|
|
@logger = Log4r::Logger.new("vagrant::lxd::action::ensure_started")
|
|
end
|
|
|
|
def call(env)
|
|
driver = env[:machine].provider.driver
|
|
|
|
# Currently I suppose this is the same on all linux distributions
|
|
# so it is not configured in the metadata of the box.
|
|
driver.vagrant_user
|
|
driver.enable_ssh
|
|
|
|
@app.call(env)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
# vim: set et ts=2 sw=2:
|