foreman_dhcp_browser 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef72f3a66d01d9e93e4980c127ce28b3b0406786
4
- data.tar.gz: 4ecd7afcc02f4d3c634599c6fc32d677bf724cae
3
+ metadata.gz: b095b8d8898cdd086d2d6d0d7c0ae14bc256d250
4
+ data.tar.gz: f400cea5c4f428b74133ef5ed4b42885c84a7c49
5
5
  SHA512:
6
- metadata.gz: 8ebda611481a5b18b09b851496d8e0d76a762c9ccc0ace0b3529b59bc0911c5077e7d2a7dbd4a26dc8bdc9990b9aa27649f3ebe668d4b64c77494aaba8b13a88
7
- data.tar.gz: 21a4d6d11f5850017e7cc29980cda0f4510733bde813c7b0e3ffea1ce1cd089847c42666d1fc6ccc629f88adc99c3b950191af0c0c24fe9f03f8d3780e1b6ab9
6
+ metadata.gz: f7df3af03ecee31cf1c8c96759061ea45db850190f11b6aabb728fa23f5441d8c7efd113a3d4d6c363e54eff164b708451129b6a6c7a7ab851797cea830a0230
7
+ data.tar.gz: b535a68d44b34b13896c68dbee28653d54e48b7fd465566689ef9838de9f4de3ce77883b4eb6d793205e2f1fad64f87c04143cb965081e72db3c15c2cfca4b54
@@ -2,7 +2,7 @@ class DhcpEntries
2
2
  delegate :dhcp_proxy, :to => :subnet
3
3
  alias_attribute :proxy, :dhcp_proxy
4
4
 
5
- def initialize opts = {}
5
+ def initialize(opts = {})
6
6
  @subnet = opts[:subnet]
7
7
  end
8
8
 
@@ -22,7 +22,7 @@ class DhcpEntries
22
22
  all['leases']
23
23
  end
24
24
 
25
- def find mac
25
+ def find(mac)
26
26
  proxy.record(subnet.network, mac)
27
27
  end
28
28
 
@@ -3,7 +3,7 @@ module ForemanDhcpBrowser::Concerns::NetRecordExtension
3
3
 
4
4
  included do
5
5
  def self.humanize_class_name
6
- "DHCP"
6
+ 'DHCP'
7
7
  end
8
8
  end
9
9
 
@@ -1,4 +1,4 @@
1
- Deface::Override.new(:virtual_path => "subnets/index",
2
- :name => "add_subnets_dhcp",
3
- :insert_top => "td:last",
1
+ Deface::Override.new(:virtual_path => 'subnets/index',
2
+ :name => 'add_subnets_dhcp',
3
+ :insert_top => 'td:last',
4
4
  :text => "<%= link_to 'DHCP',subnet_dhcp_index_path(subnet), :class => 'btn btn-default btn-sm', :disabled => !subnet.dhcp? %>")
@@ -1,2 +1,2 @@
1
- <% title _("Edit DHCP Record") %>
1
+ <% title _('Edit DHCP Record') %>
2
2
  <%= render :partial => 'form' %>
@@ -1,5 +1,5 @@
1
1
  <% title "DHCP Reservations for #{@subnet}" %>
2
- <% title_actions button_group(link_to_if_authorized _("New DHCP Record"), hash_for_new_subnet_dhcp_path(params[:subnet_id])) %>
2
+ <% title_actions button_group(link_to_if_authorized _('New DHCP Record'), hash_for_new_subnet_dhcp_path(params[:subnet_id])) %>
3
3
  <table class="table table-bordered table-striped table-condensed" data-table='inline'>
4
4
  <thead>
5
5
  <th>Name</th>
@@ -17,7 +17,7 @@
17
17
  <%= action_buttons(
18
18
  #TODO display_link_if_authorized(_("Edit"), hash_for_edit_subnet_dhcp_path(:id => entry.mac, :subnet_id => params[:subnet_id])),
19
19
  display_link_if_authorized(_('Details'), hash_for_subnet_dhcp_path(:id => entry.mac, :subnet_id => params[:subnet_id])),
20
- display_delete_if_authorized(hash_for_subnet_dhcp_path(:id => entry.mac, :subnet_id => params[:subnet_id]), :confirm => _("Delete %s?") % entry, :action => :destroy)) %>
20
+ display_delete_if_authorized(hash_for_subnet_dhcp_path(:id => entry.mac, :subnet_id => params[:subnet_id]), :confirm => _('Delete %s?') % entry, :action => :destroy)) %>
21
21
  </td>
22
22
  </tr>
23
23
  <% end -%>
@@ -1,2 +1,2 @@
1
- <% title _("New DHCP Record") %>
1
+ <% title _('New DHCP Record') %>
2
2
  <%= render :partial => 'form' %>
@@ -1,4 +1,4 @@
1
- require "foreman_dhcp_browser/engine"
1
+ require 'foreman_dhcp_browser/engine'
2
2
 
3
3
  module ForemanDhcpBrowser
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanDhcpBrowser
2
- VERSION = "0.0.6"
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_dhcp_browser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ohad Levy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-19 00:00:00.000000000 Z
11
+ date: 2015-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '2.0'
27
27
  description: Plugin for Foreman to browse and add/edit/delete DHCP leases independent
28
28
  of Foreman's host creation
29
29
  email: ohadlevy@gmail.com