hammer_cli_foreman_salt 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fde0a0bded9f14ac1c0a4acf8b75096d36e6e58
4
- data.tar.gz: b401826b1e92eb8738e5f0a1abc54f1afeaae770
3
+ metadata.gz: 1982541b5a24372981f3f9ea183e3b4bfc3e3f64
4
+ data.tar.gz: 000130cf49660b97de18b6139f886dc986393de0
5
5
  SHA512:
6
- metadata.gz: 32d3a11f6eeff30e85366432599f5b32f0f08237b752a00fdc3dc0b399569f91f749ab3ec6501339dc445bc117a5c3ed86a51d8e27d87b89fdbec3ccd46aba7a
7
- data.tar.gz: ae1f708e8e81074005d44129c3f763f927d285b7589c768ad53a047634403574939063a4477a139e5fa9b9d65edc96749569dfc16fa262fbdec7e1f23852348d
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
 
@@ -1,5 +1,5 @@
1
1
  module HammerCLIForemanSalt
2
2
  def self.version
3
- @version ||= Gem::Version.new '0.0.4'
3
+ @version ||= Gem::Version.new '0.0.5'
4
4
  end
5
5
  end
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
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: 2015-03-03 00:00:00.000000000 Z
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.2.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