-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
class DhcpEntries | ||
class DHCPEntries | ||
delegate :dhcp_proxy, to: :subnet | ||
alias_attribute :proxy, :dhcp_proxy | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
app/models/foreman_dhcp_browser/concerns/net_record_extension.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'foreman_dhcp_browser/engine' | ||
|
||
module ForemanDhcpBrowser | ||
module ForemanDHCPBrowser | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
require 'deface' | ||
module ForemanDhcpBrowser | ||
module ForemanDHCPBrowser | ||
class Engine < ::Rails::Engine | ||
initializer 'foreman_dhcp_browser.register_plugin', before: :finisher_hook do |_app| | ||
Foreman::Plugin.register :foreman_dhcp_browser do | ||
engine_name 'foreman_dhcp_browser' | ||
|
||
initializer 'foreman_dhcp_browser.register_plugin', before: :finisher_hook do |app| | ||
app.reloader.to_prepare do | ||
Foreman::Plugin.register :foreman_dhcp_browser do | ||
requires_foreman '>= 3.14.0' | ||
end | ||
end | ||
end | ||
|
||
config.to_prepare do | ||
::Net::Record.include ::ActiveModel::AttributeMethods | ||
::Net::Record.include ::ActiveModel::Conversion | ||
::Net::Record.extend ::ActiveModel::Naming | ||
::Net::Record.include ForemanDhcpBrowser::Concerns::NetRecordExtension | ||
::Net::Record.include ForemanDHCPBrowser::Concerns::NetRecordExtension | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module ForemanDhcpBrowser | ||
module ForemanDHCPBrowser | ||
VERSION = '0.0.8'.freeze | ||
end |