foreman-tasks 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -91,6 +91,22 @@ module Actions
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
+
class ActivationKeyResource < Resource
|
95
|
+
def name
|
96
|
+
:activation_key
|
97
|
+
end
|
98
|
+
|
99
|
+
def humanized_name
|
100
|
+
_('activation key')
|
101
|
+
end
|
102
|
+
|
103
|
+
def link(data)
|
104
|
+
if ackey_id = fetch_data(data, :activation_key, :id)
|
105
|
+
"/activation_keys/#{ackey_id}/info"
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
94
110
|
class UserResource < Resource
|
95
111
|
def name
|
96
112
|
:user
|
@@ -21,14 +21,16 @@
|
|
21
21
|
<span class="param-value">
|
22
22
|
<pre><%= action.output.pretty_inspect %></pre>
|
23
23
|
</span>
|
24
|
-
|
25
|
-
|
26
|
-
<
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
<
|
31
|
-
|
24
|
+
<% if step.error %>
|
25
|
+
<span class="param-name"><%= _("Exception") %>:</span>
|
26
|
+
<span class="param-value">
|
27
|
+
<pre><%= step.error.exception_class %>: <%= step.error.message %></pre>
|
28
|
+
</span>
|
29
|
+
<span class="param-name"><%= _("Backtrace") %>:</span>
|
30
|
+
<span class="param-value">
|
31
|
+
<pre><%= step.error.backtrace.join("\n") %></pre>
|
32
|
+
</span>
|
33
|
+
<% end %>
|
32
34
|
</div>
|
33
35
|
<% end %>
|
34
36
|
<% end %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-08-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|