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
179 180 181 182 183 184 185 186 187 |
# File 'lib/hammer_cli_katello/repository.rb', line 179 def format(path) fullpath = ::File.(path) if File.directory?(fullpath) Dir["#{fullpath}/*"].map { |file| ::File.new(file, 'rb') } else [::File.new(fullpath, 'rb')] end end |