Class: HammerCLIKatello::Repository::UploadContentCommand::BinaryPath
- Inherits:
-
HammerCLI::Options::Normalizers::File
- Object
- HammerCLI::Options::Normalizers::File
- HammerCLIKatello::Repository::UploadContentCommand::BinaryPath
- Defined in:
- lib/hammer_cli_katello/repository.rb
Instance Method Summary collapse
Instance Method Details
#format(path) ⇒ Object
336 337 338 339 340 341 342 343 344 345 346 |
# File 'lib/hammer_cli_katello/repository.rb', line 336 def format(path) fullpath = ::File.(path) if File.directory?(fullpath) Dir["#{fullpath}/*"] elsif File.exist?(fullpath) [fullpath] else Dir[fullpath] end end |