hammer_cli_foreman_tasks 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 714c7e02e10d7ca19a16ebed22e430dd42a1db99
|
4
|
+
data.tar.gz: b6771ac5b22e44c109203fa4064217b695625983
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cc9f7d5747be40b4246ca307a3bb3f10e8dc7de19cc72a4baab6196b905c500e3989638ca068365bdb8c38f83146feeea86c26d95de7147e4e594e876257d379
|
7
|
+
data.tar.gz: 8ebc19af9dd0e8aeba3773ad11bf16e810525d072da63ad36a0560c84431456ded78d5816274e6cf6216b4684e222f2ce857f34f74f8f0c2363e8e28957501c0
|
data/README.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
module HammerCLIForemanTasks
|
2
|
-
class AsyncCommand < HammerCLIForeman::WriteCommand
|
3
|
-
include HammerCLIForemanTasks::Helper
|
4
2
|
|
5
|
-
|
3
|
+
module Async
|
4
|
+
|
5
|
+
def self.included(base)
|
6
|
+
base.send(:include, HammerCLIForemanTasks::Helper)
|
7
|
+
base.send(:option, '--async', :flag, 'Do not wait for the task')
|
8
|
+
end
|
6
9
|
|
7
10
|
def execute
|
8
11
|
if option_async?
|
@@ -13,6 +16,11 @@ module HammerCLIForemanTasks
|
|
13
16
|
end
|
14
17
|
end
|
15
18
|
|
16
|
-
|
19
|
+
end
|
20
|
+
|
21
|
+
class AsyncCommand < HammerCLIForeman::Command
|
22
|
+
include HammerCLIForemanTasks::Async
|
23
|
+
|
24
|
+
build_options
|
17
25
|
end
|
18
26
|
end
|
@@ -1,10 +1,6 @@
|
|
1
1
|
module HammerCLIForemanTasks
|
2
2
|
module Helper
|
3
3
|
|
4
|
-
def included(base)
|
5
|
-
base.send(:include, HammerCLI::Apipie::Resource)
|
6
|
-
end
|
7
|
-
|
8
4
|
# render the progress of the task using polling to the task API
|
9
5
|
def task_progress(task_or_id)
|
10
6
|
task_id = task_or_id.is_a?(Hash) ? task_or_id['id'] : task_or_id
|
@@ -14,7 +10,7 @@ module HammerCLIForemanTasks
|
|
14
10
|
end
|
15
11
|
|
16
12
|
def load_task(id)
|
17
|
-
self.class.resource(:foreman_tasks).call(:show, id
|
13
|
+
self.class.resource(:foreman_tasks).call(:show, :id => id)
|
18
14
|
end
|
19
15
|
|
20
16
|
end
|
@@ -3,12 +3,12 @@ module HammerCLIForemanTasks
|
|
3
3
|
|
4
4
|
resource :foreman_tasks
|
5
5
|
|
6
|
-
class ProgressCommand < HammerCLIForeman::
|
6
|
+
class ProgressCommand < HammerCLIForeman::Command
|
7
7
|
|
8
8
|
include HammerCLIForemanTasks::Helper
|
9
9
|
|
10
10
|
action :show
|
11
|
-
|
11
|
+
build_options
|
12
12
|
|
13
13
|
command_name "progress"
|
14
14
|
desc "Show the progress of the task"
|
metadata
CHANGED
@@ -1,100 +1,82 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_foreman_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
prerelease:
|
10
|
-
hash: -1657442883155007430
|
4
|
+
version: 0.0.3
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Ivan Nečas
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
date: 2014-
|
11
|
+
date: 2014-05-27 00:00:00.000000000 Z
|
18
12
|
dependencies:
|
19
13
|
- !ruby/object:Gem::Dependency
|
20
14
|
name: powerbar
|
21
15
|
requirement: !ruby/object:Gem::Requirement
|
22
|
-
none: false
|
23
16
|
requirements:
|
24
|
-
- -
|
17
|
+
- - "~>"
|
25
18
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
19
|
+
version: 1.0.11
|
27
20
|
type: :runtime
|
28
21
|
prerelease: false
|
29
22
|
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
none: false
|
31
23
|
requirements:
|
32
|
-
- -
|
24
|
+
- - "~>"
|
33
25
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
26
|
+
version: 1.0.11
|
35
27
|
- !ruby/object:Gem::Dependency
|
36
28
|
name: hammer_cli_foreman
|
37
29
|
requirement: !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
39
30
|
requirements:
|
40
|
-
- -
|
31
|
+
- - "~>"
|
41
32
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
33
|
+
version: 0.1.1
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
none: false
|
47
37
|
requirements:
|
48
|
-
- -
|
38
|
+
- - "~>"
|
49
39
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
51
|
-
description:
|
52
|
-
in the Hammer CLI.
|
53
|
-
|
54
|
-
'
|
40
|
+
version: 0.1.1
|
41
|
+
description: |
|
42
|
+
Contains the code for showing of the tasks (results and progress) in the Hammer CLI.
|
55
43
|
email:
|
56
44
|
- inecas@redhat.com
|
57
45
|
executables: []
|
58
46
|
extensions: []
|
59
47
|
extra_rdoc_files: []
|
60
48
|
files:
|
49
|
+
- LICENSE
|
50
|
+
- README.md
|
61
51
|
- lib/hammer_cli_foreman_tasks.rb
|
62
|
-
- lib/hammer_cli_foreman_tasks/task_progress.rb
|
63
|
-
- lib/hammer_cli_foreman_tasks/version.rb
|
64
52
|
- lib/hammer_cli_foreman_tasks/async_command.rb
|
65
53
|
- lib/hammer_cli_foreman_tasks/helper.rb
|
66
54
|
- lib/hammer_cli_foreman_tasks/task.rb
|
67
|
-
-
|
68
|
-
-
|
55
|
+
- lib/hammer_cli_foreman_tasks/task_progress.rb
|
56
|
+
- lib/hammer_cli_foreman_tasks/version.rb
|
69
57
|
homepage: https://github.com/iNecas/hammer-cli-foreman-tasks
|
70
58
|
licenses:
|
71
59
|
- GPL-3
|
60
|
+
metadata: {}
|
72
61
|
post_install_message:
|
73
62
|
rdoc_options: []
|
74
63
|
require_paths:
|
75
64
|
- lib
|
76
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
66
|
requirements:
|
79
|
-
- -
|
67
|
+
- - ">="
|
80
68
|
- !ruby/object:Gem::Version
|
81
69
|
version: '0'
|
82
|
-
segments:
|
83
|
-
- 0
|
84
|
-
hash: -1982060017935501364
|
85
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
71
|
requirements:
|
88
|
-
- -
|
72
|
+
- - ">="
|
89
73
|
- !ruby/object:Gem::Version
|
90
74
|
version: '0'
|
91
|
-
segments:
|
92
|
-
- 0
|
93
|
-
hash: -1982060017935501364
|
94
75
|
requirements: []
|
95
76
|
rubyforge_project:
|
96
|
-
rubygems_version:
|
77
|
+
rubygems_version: 2.2.2
|
97
78
|
signing_key:
|
98
|
-
specification_version:
|
79
|
+
specification_version: 4
|
99
80
|
summary: Foreman CLI plugin for showing tasks information for resoruces and users
|
100
81
|
test_files: []
|
82
|
+
has_rdoc:
|