Sha256: 99631369c455dc4da294789623001810a7adb34965221aeadc0f8c1dfa2de7ef
Contents?: true
Size: 928 Bytes
Versions: 31
Compression:
Stored size: 928 Bytes
Contents
require 'rake_factory' require_relative '../container' module RakeDocker module Tasks class Provision < RakeFactory::Task default_name :provision default_description RakeFactory::DynamicValue.new { |t| "Provision #{t.container_name ? "#{t.container_name} " : ""}container." } parameter :container_name, :required => true parameter :image, :required => true parameter :ports parameter :environment parameter :ready_check parameter :reporter, default: Container::PrintingReporter.new action do |t| puts "Provisioning #{t.container_name} container" provisioner = Container::Provisioner.new( t.container_name, t.image, ports: t.ports, environment: t.environment, ready?: t.ready_check, reporter: t.reporter) provisioner.execute end end end end
Version data entries
31 entries across 31 versions & 1 rubygems