Class: Kube::Cluster::Standard::JuiceFS::Sync

Inherits:
Object
  • Object
show all
Defined in:
lib/kube/cluster/standard/juice_fs/sync.rb

Instance Method Summary collapse

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.options  = options if options.any?
    spec.from     = from
    spec.to       = to

    instance_exec(&block) if block
  }
end