module Luban::Deployment::Application::Dockerable
Public Class Methods
prepended(base)
click to toggle source
# File lib/luban/deployment/cli/application/docker/dockerable.rb, line 5 def self.prepended(base) base.dispatch_task :init_docker!, to: :dockerizer, as: :init_docker, locally: true base.dispatch_task :dockerize_application!, to: :dockerizer, as: :dockerize_application, locally: true base.dispatch_task :build_application!, to: :dockerizer, as: :build_application, locally: true base.dispatch_task :distribute_application!, to: :dockerizer, as: :distribute_application end
Public Instance Methods
default_docker_templates_path()
click to toggle source
# File lib/luban/deployment/cli/application/docker/dockerable.rb, line 27 def default_docker_templates_path @default_docker_template_path ||= base_templates_path(__FILE__) end
deploy(args:, opts:)
click to toggle source
Calls superclass method
# File lib/luban/deployment/cli/application/docker/dockerable.rb, line 12 def deploy(args:, opts:) super dockerize_application!(args: args, opts: opts)[:build].tap do |build| build_application!(args: args, opts: opts.merge(build: build)) distribute_application!(args: args, opts: opts.merge(build: build)) end end
init_profiles(args:, opts:)
click to toggle source
Calls superclass method
# File lib/luban/deployment/cli/application/docker/dockerable.rb, line 20 def init_profiles(args:, opts:) super init_docker!(args: args, opts: opts.merge(default_docker_templates_path: default_docker_templates_path, docker_templates_path: config_finder[:application].templates_path)) end
package(name, version:, **opts)
click to toggle source
Calls superclass method
# File lib/luban/deployment/cli/application/docker/dockerable.rb, line 31 def package(name, version:, **opts) opts.merge!(deprecated: true) unless opts[:current] super end
release(version, **opts)
click to toggle source
Calls superclass method
# File lib/luban/deployment/cli/application/docker/dockerable.rb, line 36 def release(version, **opts) opts.merge!(deprecated: true) unless opts[:current] super end