foreman_packages 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/models/foreman_packages/package.rb +1 -1
- data/app/views/foreman_packages/packages/_form.html.erb +1 -1
- data/app/views/foreman_packages/packages/_list.html.erb +1 -1
- data/app/views/foreman_packages/packages/show.html.erb +1 -1
- data/config/routes.rb +9 -9
- data/lib/foreman_packages/version.rb +1 -1
- metadata +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
module ForemanPackages
|
2
2
|
class Package < ActiveRecord::Base
|
3
3
|
require "fileutils"
|
4
|
-
attr_accessible :
|
4
|
+
attr_accessible :packagename, :ensure, :file_path, :file_ensure, :file_source, :file_mode, :file_onwer, :file_group, :file_notify, :file_require, :service_name, :service_ensure, :service_enable, :service_hasstatus, :service_hasrestart, :filename, :file_cache
|
5
5
|
|
6
6
|
mount_uploader :filename, ForemanPackages::AttachmentUploader
|
7
7
|
after_create :create_dir
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<div class="row">
|
7
7
|
<div class="form-group col-md-6">
|
8
8
|
<label>name</label>
|
9
|
-
<%= f.text_field :
|
9
|
+
<%= f.text_field :packagename, :size => "col-md-6", placeholder: "填写用户名", class: "form-control" %>
|
10
10
|
</div>
|
11
11
|
<div class="form-group col-md-6">
|
12
12
|
<label for="package_ensure">ensure</label> <br />
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<tbody>
|
26
26
|
<% packages.each do |package| %>
|
27
27
|
<tr>
|
28
|
-
<td class=''><%= package.
|
28
|
+
<td class=''><%= package.packagename %></td>
|
29
29
|
<td class="hidden-xs"><%= package.ensure %></td>
|
30
30
|
<td class="hidden-xs"><%= package.file_path %></td>
|
31
31
|
<td class="hidden-tablet hidden-xs"><%= package.file_ensure %></td>
|
data/config/routes.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
2
|
|
3
3
|
namespace :foreman_packages do
|
4
|
-
resources :packages do
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
end
|
4
|
+
resources :packages #do
|
5
|
+
# match 'index', to: 'foreman_packages/packages#index'
|
6
|
+
# match 'show', to: 'foreman_packages/packages#show'
|
7
|
+
# match 'new', to: 'foreman_packages/packages#new'
|
8
|
+
# match 'edit', to: 'foreman_packages/packages#edit'
|
9
|
+
# match 'create', to: 'foreman_packages/packages#create'
|
10
|
+
# match 'update', to: 'foreman_packages/packages#update'
|
11
|
+
# match 'destroy', to: 'foreman_packages/packages#destroy'
|
12
|
+
# end
|
13
13
|
end
|
14
14
|
|
15
15
|
end
|