Class: Kube::Cluster::Standard::JuiceFS::Sync
- Inherits:
-
Object
- Object
- Kube::Cluster::Standard::JuiceFS::Sync
- Defined in:
- lib/kube/cluster/standard/juice_fs/sync.rb
Instance Method Summary collapse
-
#initialize(name:, image:, from:, to:, replicas: 1, options: [], &block) ⇒ Sync
constructor
A new instance of Sync.
Constructor Details
#initialize(name:, image:, from:, to:, replicas: 1, options: [], &block) ⇒ Sync
Returns a new instance of Sync.
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/kube/cluster/standard/juice_fs/sync.rb', line 41 def initialize(name:, image:, from:, to:, replicas: 1, options: [], &block) super() { .name = name spec.image = image spec.replicas = replicas spec. = if .any? spec.from = from spec.to = to instance_exec(&block) if block } end |