hammer_cli_katello 0.1.0 → 0.1.1

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: fba3fe5b5ff30bffe68b77824669b9d143c2d7ab
4
- data.tar.gz: e6a5a233359eba0135cef5f1d7b45ef48839c9d2
3
+ metadata.gz: 7a05df3aa9c87671b9a09e58400063e73c983074
4
+ data.tar.gz: 9a8972600cac00f5ac586171eb824e065b940171
5
5
  SHA512:
6
- metadata.gz: efe03d7b7ac938789b3449168a83704b23ff2232db7dac164c6404907ea1f20f5506cd1a96b300059558798d50ba1cfaa155546c5259f805c86c2a177de68a06
7
- data.tar.gz: ad45ddc94638fce64c602bee4e3c6c0a14c0216d6d98ec639c5f622d3d253372abcd9d211d0288c55e050a005e2e52752577b38a36d106d890b8fb3f7d47b6fe
6
+ metadata.gz: 4a123fe169d342fa4c7a781ec2d3269cb98387cc0a426a651c090cd97bb2fff9cc65b0afd1d7d3d6f0e4a56e78ba13828c00004936607c87aed66634c791acc1
7
+ data.tar.gz: 96f2fc32799220946383e73a758833b23eac68dae168cd6dea2e6e9ea5b090f7143a1288cff070b8a721a07ad4cd1bc3a2a88f905227b9a0e2d9c6b5d1292e49
@@ -150,18 +150,23 @@ module HammerCLIKatello
150
150
 
151
151
  autoload_subcommands
152
152
 
153
- class ContentBaseCommand < DeleteCommand
154
- resource :systems_bulk_actions
153
+ class ContentBaseCommand < Command
154
+ resource :hosts_bulk_actions
155
+
156
+ option "--id", "HOST_COLLECTION_ID", _("Host Collection ID"),
157
+ :attribute_name => :option_host_collection_id
158
+ option "--name", "HOST_COLLECTION_NAME", _("Host Collection Name"),
159
+ :attribute_name => :option_host_collection_name
155
160
 
156
161
  build_options do |o|
157
- o.without(:content_type, :content, :ids, :search)
162
+ o.expand(:all).including(:organizations)
158
163
  end
159
164
 
160
165
  def request_params
161
166
  params = super
162
167
  params['content'] = content
163
168
  params['content_type'] = content_type
164
- params['included'] = { :search => "host_collection_ids:#{params['id']}" }
169
+ params['included'] = { search: "host_collection_id=\"#{option_host_collection_id}\"" }
165
170
  params.delete('id')
166
171
  params
167
172
  end
@@ -169,7 +174,7 @@ module HammerCLIKatello
169
174
  def resolver
170
175
  api = HammerCLI::Connection.get("foreman").api
171
176
  custom_resolver = Class.new(HammerCLIKatello::IdResolver) do
172
- def systems_bulk_action_id(options)
177
+ def hosts_bulk_action_id(options)
173
178
  host_collection_id(options)
174
179
  end
175
180
  end
@@ -1,5 +1,5 @@
1
1
  module HammerCLIKatello
2
2
  def self.version
3
- @version ||= Gem::Version.new('0.1.0')
3
+ @version ||= Gem::Version.new('0.1.1')
4
4
  end
5
5
  end