Skip to content

Commit

Permalink
Renaming Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Penaz91 committed Jan 21, 2023
1 parent bd9d717 commit 9d2ad85
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 41 deletions.
2 changes: 1 addition & 1 deletion lib/host/cap/hello.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module MyVagrantHostPlugin
module VagrantArtixHost
module Cap
class Hello
def self.hello_command(env)
Expand Down
2 changes: 1 addition & 1 deletion lib/host/host.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'logger'

module MyVagrantHostPlugin
module VagrantArtixHost
class Host < Vagrant.plugin("2", :host)
def detect?(env)
# TODO: run a command on the host to determine if it is running
Expand Down
2 changes: 1 addition & 1 deletion lib/host/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module MyVagrantHostPlugin
module VagrantArtixHost
VERSION = File.read(File.expand_path("../../../VERSION", __FILE__)).chop
end
26 changes: 26 additions & 0 deletions lib/vagrant-host-artix.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
begin
require "vagrant"
rescue LoadError
raise "Vagrant is required!"
end

require "host/host"

module VagrantArtixHost
class Plugin < Vagrant.plugin("2")
name "VagrantArtixHost"
description <<-DESC
Vagrant Host plugin for Artix Linux
DESC

host(:artixhostplugin) do
host
end

# Defining Host Capabilities
host_capability(:artixhostplugin, :nfs) do
require_relative 'cap/nfs'
Cap::Nfs
end
end
end
37 changes: 0 additions & 37 deletions lib/vagrant-host.rb

This file was deleted.

2 changes: 1 addition & 1 deletion test/unit/host/host_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require File.expand_path("../../../../lib/host", __FILE__)

describe MyVagrantHostPlugin::Host do
describe VagrantArtixHost::Host do
# TODO
end

0 comments on commit 9d2ad85

Please sign in to comment.