plugins/guests/redhat/plugin.rb in vagrant-registration-0.0.19 vs plugins/guests/redhat/plugin.rb in vagrant-registration-1.0.0

- old
+ new

@@ -1,71 +1,86 @@ -require "vagrant" +require 'vagrant' module VagrantPlugins module GuestRedHat - class Plugin < Vagrant.plugin("2") - guest_capability("redhat", "registration_registered?") do - require_relative "cap/registration" + class Plugin < Vagrant.plugin('2') + guest_capability('redhat', 'registration_registered?') do + require_relative 'cap/registration' Cap::Registration end - guest_capability("redhat", "registration_register") do - require_relative "cap/registration" + guest_capability('redhat', 'registration_register') do + require_relative 'cap/registration' Cap::Registration end - guest_capability("redhat", "registration_unregister") do - require_relative "cap/registration" + guest_capability('redhat', 'registration_unregister') do + require_relative 'cap/registration' Cap::Registration end - guest_capability("redhat", "registration_manager_installed") do - require_relative "cap/registration" + guest_capability('redhat', 'registration_manager_installed') do + require_relative 'cap/registration' Cap::Registration end - guest_capability("redhat", "registration_credentials") do - require_relative "cap/registration" + guest_capability('redhat', 'registration_credentials') do + require_relative 'cap/registration' Cap::Registration end - guest_capability("redhat", "registration_secrets") do - require_relative "cap/registration" + guest_capability('redhat', 'registration_options') do + require_relative 'cap/registration' Cap::Registration end - guest_capability("redhat", "registration_manager") do - require_relative "cap/registration" + guest_capability('redhat', 'registration_secrets') do + require_relative 'cap/registration' Cap::Registration end - guest_capability("redhat", "subscription_manager") do - require_relative "cap/subscription_manager" + guest_capability('redhat', 'registration_manager') do + require_relative 'cap/registration' + Cap::Registration + end + + guest_capability('redhat', 'subscription_manager') do + require_relative 'cap/subscription_manager' Cap::SubscriptionManager end - guest_capability("redhat", "subscription_manager_registered?") do - require_relative "cap/subscription_manager" + guest_capability('redhat', 'subscription_manager_registered?') do + require_relative 'cap/subscription_manager' Cap::SubscriptionManager end - guest_capability("redhat", "subscription_manager_register") do - require_relative "cap/subscription_manager" + guest_capability('redhat', 'subscription_manager_register') do + require_relative 'cap/subscription_manager' Cap::SubscriptionManager end - guest_capability("redhat", "subscription_manager_unregister") do + guest_capability('redhat', 'subscription_manager_upload_certificate') do require_relative "cap/subscription_manager" Cap::SubscriptionManager end - guest_capability("redhat", "subscription_manager_credentials") do - require_relative "cap/subscription_manager" + guest_capability('redhat', 'subscription_manager_unregister') do + require_relative 'cap/subscription_manager' Cap::SubscriptionManager end - guest_capability("redhat", "subscription_manager_secrets") do - require_relative "cap/subscription_manager" + guest_capability('redhat', 'subscription_manager_credentials') do + require_relative 'cap/subscription_manager' + Cap::SubscriptionManager + end + + guest_capability('redhat', 'subscription_manager_options') do + require_relative 'cap/subscription_manager' + Cap::SubscriptionManager + end + + guest_capability('redhat', 'subscription_manager_secrets') do + require_relative 'cap/subscription_manager' Cap::SubscriptionManager end end end end