Module: OsCtld::Utils::Assets
- Included in:
- Commands::Container::Assets, Commands::Group::Assets, Commands::IdRange::Assets, Commands::Pool::Assets, Commands::Repository::Assets, Commands::Self::Assets, Commands::User::Assets
- Defined in:
- lib/osctld/utils/assets.rb
Instance Method Summary collapse
Instance Method Details
#list_and_validate_assets(entity) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/osctld/utils/assets.rb', line 4 def list_and_validate_assets(entity) validator = Assets::Validator.new(entity.assets) validator.validate.map do |asset| { type: asset.type, path: asset.path, opts: asset.opts, state: asset.state, errors: asset.errors } end end |