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 VagrantPlugins
module GuestPhoton module GuestPhoton
class Guest < Vagrant.plugin('2', :guest) class Guest < Vagrant.plugin("2", :guest)
def detect?(machine) def detect?(machine)
machine.communicate.test("cat /etc/photon-release | grep 'VMware Photon Linux'") machine.communicate.test("cat /etc/photon-release | grep 'VMware Photon Linux'")
end end

View File

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