foreman-tasks 0.6.6 → 0.6.7

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.
@@ -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
- <span class="param-name"><%= _("Exception") %>:</span>
25
- <span class="param-value">
26
- <pre><%= step.error.exception_class %>: <%= step.error.message %></pre>
27
- </span>
28
- <span class="param-name"><%= _("Backtrace") %>:</span>
29
- <span class="param-value">
30
- <pre><%= step.error.backtrace.join("\n") %></pre>
31
- </span>
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 %>
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
3
3
  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.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-07-24 00:00:00.000000000 Z
12
+ date: 2014-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails