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
192 193 194 195 196 197 198 199 200 |
# File 'lib/hammer_cli_katello/repository.rb', line 192 def format(path) fullpath = ::File.(path) if File.directory?(fullpath) Dir["#{fullpath}/*"] else [fullpath] end end |