Sha256: 2f16fd5e8d080ce3f64a585f82de2aa9d7b55c8392d38e372ce58047551a1353

Contents?: true

Size: 833 Bytes

Versions: 31

Compression:

Stored size: 833 Bytes

Contents

require 'rake_factory'
require 'docker'

require_relative '../tasks'
require_relative '../container'

module RakeDocker
  module TaskSets
    class Container < RakeFactory::TaskSet
      prepend RakeFactory::Namespaceable

      parameter :container_name, required: true
      parameter :image, required: true
      parameter :ports
      parameter :environment

      parameter :ready_check

      parameter :reporter,
          default: RakeDocker::Container::PrintingReporter.new

      parameter :provision_task_name, default: :provision
      parameter :destroy_task_name, default: :destroy

      task Tasks::Provision, name: RakeFactory::DynamicValue.new { |ts|
        ts.provision_task_name
      }
      task Tasks::Destroy, name: RakeFactory::DynamicValue.new { |ts|
        ts.destroy_task_name
      }
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
rake_docker-2.4.0.pre.13 lib/rake_docker/task_sets/container.rb
rake_docker-2.4.0.pre.12 lib/rake_docker/task_sets/container.rb
rake_docker-2.4.0.pre.11 lib/rake_docker/task_sets/container.rb
rake_docker-2.4.0.pre.10 lib/rake_docker/task_sets/container.rb
rake_docker-2.4.0.pre.9 lib/rake_docker/task_sets/container.rb
rake_docker-2.4.0.pre.8 lib/rake_docker/task_sets/container.rb
rake_docker-2.4.0.pre.7 lib/rake_docker/task_sets/container.rb
rake_docker-2.4.0.pre.6 lib/rake_docker/task_sets/container.rb
rake_docker-2.4.0.pre.5 lib/rake_docker/task_sets/container.rb
rake_docker-2.4.0.pre.4 lib/rake_docker/task_sets/container.rb
rake_docker-2.4.0.pre.3 lib/rake_docker/task_sets/container.rb