Class: Samus::Rake::DockerReleaseTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Samus::Rake::DockerReleaseTask
- Includes:
- Helpers
- Defined in:
- lib/samus/rake/samus_task.rb
Constant Summary collapse
- PREP_DIR =
'.samusprep'
- DEFAULT_DOCKERFILE =
"Dockerfile.samus"
Instance Attribute Summary collapse
-
#delete_image_after_publish ⇒ Object
Returns the value of attribute delete_image_after_publish.
-
#dockerfile ⇒ Object
Returns the value of attribute dockerfile.
-
#extra_config ⇒ Object
Returns the value of attribute extra_config.
-
#git_pull_after_publish ⇒ Object
Returns the value of attribute git_pull_after_publish.
-
#git_pull_before_build ⇒ Object
Returns the value of attribute git_pull_before_build.
-
#mount_samus_config ⇒ Object
Returns the value of attribute mount_samus_config.
Instance Method Summary collapse
-
#initialize(namespace = :samus) {|_self| ... } ⇒ DockerReleaseTask
constructor
A new instance of DockerReleaseTask.
Constructor Details
#initialize(namespace = :samus) {|_self| ... } ⇒ DockerReleaseTask
Returns a new instance of DockerReleaseTask.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/samus/rake/samus_task.rb', line 41 def initialize(namespace = :samus) @namespace = namespace @dockerfile = DEFAULT_DOCKERFILE @delete_image_after_publish = true @git_pull_before_build = true @git_pull_after_publish = true @mount_samus_config = false @extra_config = {} yield self if block_given? build_config_files define end |
Instance Attribute Details
#delete_image_after_publish ⇒ Object
Returns the value of attribute delete_image_after_publish.
31 32 33 |
# File 'lib/samus/rake/samus_task.rb', line 31 def delete_image_after_publish @delete_image_after_publish end |
#dockerfile ⇒ Object
Returns the value of attribute dockerfile.
29 30 31 |
# File 'lib/samus/rake/samus_task.rb', line 29 def dockerfile @dockerfile end |
#extra_config ⇒ Object
Returns the value of attribute extra_config.
39 40 41 |
# File 'lib/samus/rake/samus_task.rb', line 39 def extra_config @extra_config end |
#git_pull_after_publish ⇒ Object
Returns the value of attribute git_pull_after_publish.
35 36 37 |
# File 'lib/samus/rake/samus_task.rb', line 35 def git_pull_after_publish @git_pull_after_publish end |
#git_pull_before_build ⇒ Object
Returns the value of attribute git_pull_before_build.
33 34 35 |
# File 'lib/samus/rake/samus_task.rb', line 33 def git_pull_before_build @git_pull_before_build end |
#mount_samus_config ⇒ Object
Returns the value of attribute mount_samus_config.
37 38 39 |
# File 'lib/samus/rake/samus_task.rb', line 37 def mount_samus_config @mount_samus_config end |