runcible / lib / runcible / models / python_distributor.rb @ c0df0f4c
1 |
require 'active_support/json'
|
---|---|
2 |
require 'securerandom'
|
3 |
|
4 |
module Runcible |
5 |
module Models |
6 |
class PythonDistributor < Distributor |
7 |
def initialize(params = {}) |
8 |
super(params)
|
9 |
end
|
10 |
|
11 |
def self.type_id |
12 |
'python_distributor'
|
13 |
end
|
14 |
|
15 |
def config |
16 |
to_ret = as_json |
17 |
to_ret.delete('auto_publish')
|
18 |
to_ret.delete('id')
|
19 |
to_ret |
20 |
end
|
21 |
end
|
22 |
end
|
23 |
end
|