hammer_cli_katello 0.0.21 → 0.0.22

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: 98af7a9663fc4e98bb4519596d20565e4951c8a4
4
- data.tar.gz: e2a4f407aebb23efacc835290a789a7634f8943a
3
+ metadata.gz: d8770e9202a017af0f81128ac02eaf2a1a6bf0e0
4
+ data.tar.gz: 6c8604a39140c2a62fc67831e4af13dfcc21da2f
5
5
  SHA512:
6
- metadata.gz: 4f783366272ba4a129d5979559d06eb325ac2c04342106c0d91298aac355f724c02917be172544c070ffcffdb65d9a6f8a14b223759ed56cce2f26a113246d65
7
- data.tar.gz: 59e264ec16c2249a2642372751f87c01398a40d3d38eb14bf270946fcc30e1c717bdf181cf89d362558ae86c3ca5494cda8a10995b1a52670f9ac97818966af0
6
+ metadata.gz: 99f9c6e1363364d8c5688c8d9afc2dd642f6c7ef0c69a1b40db156a74ca5991f1cf85ee1c6aec21f310f21ad42e7ecf7b571114ee50c9ab541260ca59bf030ce
7
+ data.tar.gz: 2f7d474ae3f782f35073d9c403a184fcaaba5b2634ddf4dabc41d7d813ca9fb377710ccbfbf3355cf3c89ff7d74e148d2899853d115663a1b2cf9df5728e690a
@@ -182,14 +182,18 @@ module HammerCLIKatello
182
182
  end
183
183
  end
184
184
 
185
- class ExportCommand < HammerCLIKatello::Command
185
+ class ExportCommand < HammerCLIKatello::SingleResourceCommand
186
+ include HammerCLIForemanTasks::Async
187
+
186
188
  action :export
187
189
  command_name "export"
188
190
 
189
- success_message _("Export complete")
190
- failure_message _("Could not export")
191
+ success_message _("Content view is being exported in task %{id}")
192
+ failure_message _("Could not export the content view")
191
193
 
192
- build_options
194
+ build_options do |o|
195
+ o.expand(:all).including(:environments, :content_views, :organizations)
196
+ end
193
197
  end
194
198
 
195
199
  autoload_subcommands
@@ -33,6 +33,7 @@ module HammerCLIKatello
33
33
  field :url, _("URL")
34
34
  field :_publish_via_http, _("Publish Via HTTP")
35
35
  field :full_path, _("Published At")
36
+ field :relative_path, _("Relative Path")
36
37
  field :download_policy, _("Download Policy"), Fields::Field, :hide_blank => true
37
38
  field :docker_upstream_name, _("Upstream Repository Name"),
38
39
  Fields::Field, :hide_blank => true
@@ -292,14 +293,19 @@ module HammerCLIKatello
292
293
  build_options :without => %w(uuids ids)
293
294
  end
294
295
 
295
- class ExportCommand < HammerCLIKatello::Command
296
- resource :repositories, :export
296
+ class ExportCommand < HammerCLIKatello::SingleResourceCommand
297
+ include HammerCLIForemanTasks::Async
298
+ include RepositoryScopedToProduct
299
+
300
+ action :export
297
301
  command_name "export"
298
302
 
299
- success_message _("Exported repository")
300
- failure_message _("Could not export repository")
303
+ success_message _("Repository is being exported in task %{id}")
304
+ failure_message _("Could not export the repository")
301
305
 
302
- build_options
306
+ build_options do |o|
307
+ o.expand.including(:products)
308
+ end
303
309
  end
304
310
 
305
311
  autoload_subcommands
@@ -1,5 +1,5 @@
1
1
  module HammerCLIKatello
2
2
  def self.version
3
- @version ||= Gem::Version.new('0.0.21')
3
+ @version ||= Gem::Version.new('0.0.22')
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Price
@@ -32,7 +32,7 @@ authors:
32
32
  autorequire:
33
33
  bindir: bin
34
34
  cert_chain: []
35
- date: 2016-02-12 00:00:00.000000000 Z
35
+ date: 2016-02-18 00:00:00.000000000 Z
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: hammer_cli_foreman