Project

General

Profile

Download (487 Bytes) Statistics
| Branch: | Tag: | Revision:

runcible / lib / runcible / models / ostree_distributor.rb @ c0df0f4c

1
require 'active_support/json'
2
require 'securerandom'
3

    
4
module Runcible
5
  module Models
6
    class OstreeDistributor < Distributor
7
      attr_accessor 'ostree_publish_directory', 'relative_path', 'depth'
8

    
9
      def initialize(params = {})
10
        super(params)
11
      end
12

    
13
      def self.type_id
14
        'ostree_web_distributor'
15
      end
16

    
17
      def config
18
        to_ret = as_json
19
        to_ret.delete('auto_publish')
20
        to_ret.delete('id')
21
        to_ret
22
      end
23
    end
24
  end
25
end