Class: Indocker::DeploymentPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/indocker/deployment_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deploy_containers:, deploy_tags:, servers:, skip_dependent:, skip_tags:, skip_containers:, skip_build:, skip_deploy:, force_restart:, skip_force_restart:, auto_confirm:, require_confirmation:) ⇒ DeploymentPolicy

Returns a new instance of DeploymentPolicy.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/indocker/deployment_policy.rb', line 6

def initialize(deploy_containers:, deploy_tags:, servers:, 
              skip_dependent:, skip_tags:, skip_containers:, skip_build:, skip_deploy:, 
              force_restart:, skip_force_restart:, auto_confirm:, require_confirmation:)
  @deploy_containers = deploy_containers
  @deploy_tags = deploy_tags
  @servers = servers
  @skip_dependent = skip_dependent
  @skip_tags = skip_tags
  @skip_containers = skip_containers
  @skip_build = skip_build
  @skip_deploy = skip_deploy
  @force_restart = force_restart
  @skip_force_restart = skip_force_restart
  @auto_confirm = auto_confirm
  @require_confirmation = require_confirmation
end

Instance Attribute Details

#auto_confirmObject (readonly)

Returns the value of attribute auto_confirm.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def auto_confirm
  @auto_confirm
end

#deploy_containersObject (readonly)

Returns the value of attribute deploy_containers.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def deploy_containers
  @deploy_containers
end

#deploy_tagsObject (readonly)

Returns the value of attribute deploy_tags.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def deploy_tags
  @deploy_tags
end

#force_restartObject (readonly)

Returns the value of attribute force_restart.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def force_restart
  @force_restart
end

#require_confirmationObject (readonly)

Returns the value of attribute require_confirmation.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def require_confirmation
  @require_confirmation
end

#serversObject (readonly)

Returns the value of attribute servers.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def servers
  @servers
end

#skip_buildObject (readonly)

Returns the value of attribute skip_build.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def skip_build
  @skip_build
end

#skip_containersObject (readonly)

Returns the value of attribute skip_containers.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def skip_containers
  @skip_containers
end

#skip_dependentObject (readonly)

Returns the value of attribute skip_dependent.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def skip_dependent
  @skip_dependent
end

#skip_deployObject (readonly)

Returns the value of attribute skip_deploy.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def skip_deploy
  @skip_deploy
end

#skip_force_restartObject (readonly)

Returns the value of attribute skip_force_restart.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def skip_force_restart
  @skip_force_restart
end

#skip_tagsObject (readonly)

Returns the value of attribute skip_tags.



2
3
4
# File 'lib/indocker/deployment_policy.rb', line 2

def skip_tags
  @skip_tags
end