Project

General

Profile

Revision bf01400f

Added by Matthias Dellweg almost 5 years ago

refs #10478 - Add deb extensions

View differences:

lib/runcible/extensions/deb.rb
1
module Runcible
2
  module Extensions
3
    class Deb < Runcible::Extensions::Unit
4
      def self.content_type
5
        'deb'
6
      end
7

  
8
      # This function is not implemented for DEBs since they do not have content IDs
9
      def find
10
        fail NotImplementedError
11
      end
12

  
13
      # This function is not implemented for DEBs since they do not have content IDs
14
      def find_all
15
        fail NotImplementedError
16
      end
17

  
18
      # This function is not implemented for DEBs since they do not have content IDs
19
      def unassociate_ids_from_repo(repo_id, ids)
20
        fail NotImplementedError
21
      end
22
    end
23
  end
24
end
lib/runcible/extensions/deb_component.rb
1
module Runcible
2
  module Extensions
3
    class DebComponent < Runcible::Extensions::Unit
4
      def self.content_type
5
        'deb_component'
6
      end
7

  
8
      # This function is not implemented for Components since they do not have content IDs
9
      def find
10
        fail NotImplementedError
11
      end
12

  
13
      # This function is not implemented for Components since they do not have content IDs
14
      def find_all
15
        fail NotImplementedError
16
      end
17

  
18
      # This function is not implemented for Components since they do not have content IDs
19
      def unassociate_ids_from_repo(repo_id, ids)
20
        fail NotImplementedError
21
      end
22
    end
23
  end
24
end
lib/runcible/extensions/deb_release.rb
1
module Runcible
2
  module Extensions
3
    class DebRelease < Runcible::Extensions::Unit
4
      def self.content_type
5
        'deb_release'
6
      end
7

  
8
      # This function is not implemented for Releases since they do not have content IDs
9
      def find
10
        fail NotImplementedError
11
      end
12

  
13
      # This function is not implemented for Releases since they do not have content IDs
14
      def find_all
15
        fail NotImplementedError
16
      end
17

  
18
      # This function is not implemented for Releases since they do not have content IDs
19
      def unassociate_ids_from_repo(repo_id, ids)
20
        fail NotImplementedError
21
      end
22
    end
23
  end
24
end

Also available in: Unified diff