guests/photon: Use require_relative and double quotes

This commit is contained in:
Seth Vargo 2016-06-05 16:56:05 -04:00
parent 0002c003b3
commit 5e5a91956c
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
2 changed files with 13 additions and 13 deletions

View File

@ -1,6 +1,6 @@
module VagrantPlugins
module GuestPhoton
class Guest < Vagrant.plugin('2', :guest)
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("cat /etc/photon-release | grep 'VMware Photon Linux'")
end

View File

@ -1,28 +1,28 @@
require 'vagrant'
require "vagrant"
module VagrantPlugins
module GuestPhoton
class Plugin < Vagrant.plugin('2')
name 'VMware Photon guest'
description 'VMware Photon guest support.'
class Plugin < Vagrant.plugin("2")
name "VMware Photon guest"
description "VMware Photon guest support."
guest('photon', 'linux') do
require File.expand_path("../guest", __FILE__)
guest("photon", "linux") do
require_relative "guest"
Guest
end
guest_capability('photon', 'change_host_name') do
require_relative 'cap/change_host_name'
guest_capability("photon", "change_host_name") do
require_relative "cap/change_host_name"
Cap::ChangeHostName
end
guest_capability('photon', 'configure_networks') do
require_relative 'cap/configure_networks'
guest_capability("photon", "configure_networks") do
require_relative "cap/configure_networks"
Cap::ConfigureNetworks
end
guest_capability('photon', 'docker_daemon_running') do
require_relative 'cap/docker'
guest_capability("photon", "docker_daemon_running") do
require_relative "cap/docker"
Cap::Docker
end
end