Browse Source

renamed classes and moved files to match virtialbox provider

master
Georg Hopp 9 years ago
parent
commit
514f5e1194
  1. 4
      lib/vagrant-lxd.rb
  2. 4
      lib/vagrant-lxd/action.rb
  3. 4
      lib/vagrant-lxd/action/bootstrap.rb
  4. 4
      lib/vagrant-lxd/action/create.rb
  5. 4
      lib/vagrant-lxd/action/destroy.rb
  6. 4
      lib/vagrant-lxd/action/ensure_image.rb
  7. 4
      lib/vagrant-lxd/action/ensure_ssh.rb
  8. 4
      lib/vagrant-lxd/action/ensure_started.rb
  9. 4
      lib/vagrant-lxd/action/network.rb
  10. 4
      lib/vagrant-lxd/action/stop.rb
  11. 4
      lib/vagrant-lxd/command.rb
  12. 4
      lib/vagrant-lxd/config.rb
  13. 4
      lib/vagrant-lxd/driver.rb
  14. 12
      lib/vagrant-lxd/plugin.rb
  15. 4
      lib/vagrant-lxd/provider.rb
  16. 5
      lib/vagrant-lxd/version.rb
  17. 5
      lib/vagrant/lxd/version.rb
  18. 4
      vagrant-lxd.gemspec

4
lib/vagrant/lxd.rb → lib/vagrant-lxd.rb

@ -6,5 +6,5 @@ rescue LoadError
Bundler.require(:default, :development)
end
require 'vagrant/lxd/version'
require 'vagrant/lxd/plugin'
require 'vagrant-lxd/version'
require 'vagrant-lxd/plugin'

4
lib/vagrant/lxd/action.rb → lib/vagrant-lxd/action.rb

@ -3,8 +3,8 @@ require 'log4r'
require 'vagrant/action/builder'
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
module Action
action_root = Pathname.new(File.expand_path("../action", __FILE__))
autoload :Bootstrap, action_root.join("bootstrap")

4
lib/vagrant/lxd/action/bootstrap.rb → lib/vagrant-lxd/action/bootstrap.rb

@ -1,7 +1,7 @@
require 'erb'
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
module Action
class Bootstrap
def initialize(app, env)

4
lib/vagrant/lxd/action/create.rb → lib/vagrant-lxd/action/create.rb

@ -1,5 +1,5 @@
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
module Action
class Create
def initialize(app, env)

4
lib/vagrant/lxd/action/destroy.rb → lib/vagrant-lxd/action/destroy.rb

@ -1,5 +1,5 @@
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
module Action
class Destroy
def initialize(app, env)

4
lib/vagrant/lxd/action/ensure_image.rb → lib/vagrant-lxd/action/ensure_image.rb

@ -1,5 +1,5 @@
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
module Action
class EnsureImage
def initialize(app, env)

4
lib/vagrant/lxd/action/ensure_ssh.rb → lib/vagrant-lxd/action/ensure_ssh.rb

@ -1,5 +1,5 @@
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
module Action
class EnsureSsh
def initialize(app, env)

4
lib/vagrant/lxd/action/ensure_started.rb → lib/vagrant-lxd/action/ensure_started.rb

@ -1,5 +1,5 @@
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
module Action
class EnsureStarted
def initialize(app, env)

4
lib/vagrant/lxd/action/network.rb → lib/vagrant-lxd/action/network.rb

@ -1,5 +1,5 @@
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
module Action
class Network
def initialize(app, env)

4
lib/vagrant/lxd/action/stop.rb → lib/vagrant-lxd/action/stop.rb

@ -1,5 +1,5 @@
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
module Action
class Stop
def initialize(app, env)

4
lib/vagrant/lxd/command.rb → lib/vagrant-lxd/command.rb

@ -1,5 +1,5 @@
module Vagrant
module Lxd
module VagrantPlugins
module CommandLxd
class Command < Vagrant.plugin('2', :command)
# def initialize(argv, env)
# super argv, env

4
lib/vagrant/lxd/config.rb → lib/vagrant-lxd/config.rb

@ -1,5 +1,5 @@
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
class Config < Vagrant.plugin("2", :config)
end
end

4
lib/vagrant/lxd/driver.rb → lib/vagrant-lxd/driver.rb

@ -63,8 +63,8 @@ require 'yaml'
require 'vagrant/util/retryable'
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
class Driver
include Vagrant::Util::Retryable

12
lib/vagrant/lxd/plugin.rb → lib/vagrant-lxd/plugin.rb

@ -2,8 +2,8 @@
# Test with something like:
# ~> bundle exec vagrant ls
#
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
class Plugin < Vagrant.plugin('2')
name "Lxd"
@ -26,10 +26,10 @@ module Vagrant
# SyncedFolder
#end
command 'ls' do
require File.expand_path("../command", __FILE__)
Command
end
#command 'ls' do
# require File.expand_path("../command", __FILE__)
# Command
#end
autoload :Action, File.expand_path("../action", __FILE__)
end

4
lib/vagrant/lxd/provider.rb → lib/vagrant-lxd/provider.rb

@ -1,7 +1,7 @@
require "log4r"
module Vagrant
module Lxd
module VagrantPlugins
module ProviderLxd
autoload :Driver, File.expand_path("../driver", __FILE__)
autoload :Action, File.expand_path("../action", __FILE__)

5
lib/vagrant-lxd/version.rb

@ -0,0 +1,5 @@
module VagrantPlugins
module ProviderLxd
VERSION = "0.0.1"
end
end

5
lib/vagrant/lxd/version.rb

@ -1,5 +0,0 @@
module Vagrant
module Lxd
VERSION = "0.0.1"
end
end

4
vagrant-lxd.gemspec

@ -1,11 +1,11 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'vagrant/lxd/version'
require 'vagrant-lxd/version'
Gem::Specification.new do |spec|
spec.name = "vagrant-lxd"
spec.version = Vagrant::Lxd::VERSION
spec.version = VagrantPlugins::ProviderLxd::VERSION
spec.authors = ["Georg Hopp"]
spec.email = ["hopp@silpion.de"]

Loading…
Cancel
Save