hammer_cli_foreman_salt 0.0.4 → 0.0.5
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.
- checksums.yaml +4 -4
- data/lib/hammer_cli_foreman_salt/salt_state.rb +27 -0
- data/lib/hammer_cli_foreman_salt/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1982541b5a24372981f3f9ea183e3b4bfc3e3f64
|
4
|
+
data.tar.gz: 000130cf49660b97de18b6139f886dc986393de0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50eedb7b5fdc637afa8f718d0ee42fffb79cfe54dc0a11e5fb88292e89e7f38a5fdd63f6e9dcedfdefd0f37af8cea1da528c07dce52798130d3c7e6da35cca55
|
7
|
+
data.tar.gz: 9e32aef34611c2a75565dde2deb7dedcd8f7890e15e6c9213dcf6a0cc0ce1b96f9f6a39ab1e398ef6925dc89ee1b2f2d8b57bcd809bc4310006fbf7fe9fe4363
|
@@ -21,6 +21,23 @@ module HammerCLIForemanSalt
|
|
21
21
|
build_options
|
22
22
|
end
|
23
23
|
|
24
|
+
class InfoCommand < HammerCLIForeman::InfoCommand
|
25
|
+
output do
|
26
|
+
field :id, _('ID')
|
27
|
+
field :name, _('Name')
|
28
|
+
|
29
|
+
collection :salt_environments, _('Salt Environments'), :hide_blank => true do
|
30
|
+
field :name, _('Name')
|
31
|
+
end
|
32
|
+
|
33
|
+
collection :hostgroups, _('Hostgroups'), :hide_blank => true do
|
34
|
+
field :title, _('Title')
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
build_options
|
39
|
+
end
|
40
|
+
|
24
41
|
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
25
42
|
success_message _('Salt State deleted')
|
26
43
|
failure_message _('Could not delete the Salt State')
|
@@ -28,6 +45,16 @@ module HammerCLIForemanSalt
|
|
28
45
|
build_options
|
29
46
|
end
|
30
47
|
|
48
|
+
class ImportCommand < HammerCLIForeman::Command
|
49
|
+
action :import
|
50
|
+
|
51
|
+
command_name 'import'
|
52
|
+
success_message _("States were imported")
|
53
|
+
failure_message _("Import of states failed")
|
54
|
+
|
55
|
+
build_options
|
56
|
+
end
|
57
|
+
|
31
58
|
autoload_subcommands
|
32
59
|
end
|
33
60
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_foreman_salt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Benjamin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hammer_cli_foreman
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.4.8
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: Foreman Salt-related commands for Hammer
|