Sha256: 2fdb922c8580d85daf929935c3010a5ccef2625c34811fd321a7346c93563e0d

Contents?: true

Size: 868 Bytes

Versions: 16

Compression:

Stored size: 868 Bytes

Contents

# frozen_string_literal: true

require 'rake_factory'

module RakeDocker
  module Tasks
    class Publish < RakeFactory::Task
      default_name :publish
      default_description(RakeFactory::DynamicValue.new do |t|
        "Publish #{t.image_name} image"
      end)

      parameter :image_name

      parameter :clean_task_name, default: :clean
      parameter :build_task_name, default: :build
      parameter :tag_task_name, default: :tag
      parameter :push_task_name, default: :push

      action do |t, args|
        Rake::Task[t.scope.path_with_task_name(t.clean_task_name)].invoke(*args)
        Rake::Task[t.scope.path_with_task_name(t.build_task_name)].invoke(*args)
        Rake::Task[t.scope.path_with_task_name(t.tag_task_name)].invoke(*args)
        Rake::Task[t.scope.path_with_task_name(t.push_task_name)].invoke(*args)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rake_docker-2.22.0.pre.3 lib/rake_docker/tasks/publish.rb
rake_docker-2.22.0.pre.2 lib/rake_docker/tasks/publish.rb
rake_docker-2.22.0.pre.1 lib/rake_docker/tasks/publish.rb
rake_docker-2.21.0 lib/rake_docker/tasks/publish.rb
rake_docker-2.20.0.pre.8 lib/rake_docker/tasks/publish.rb
rake_docker-2.20.0.pre.7 lib/rake_docker/tasks/publish.rb
rake_docker-2.20.0.pre.6 lib/rake_docker/tasks/publish.rb
rake_docker-2.20.0.pre.5 lib/rake_docker/tasks/publish.rb
rake_docker-2.20.0.pre.4 lib/rake_docker/tasks/publish.rb
rake_docker-2.20.0.pre.3 lib/rake_docker/tasks/publish.rb
rake_docker-2.20.0.pre.2 lib/rake_docker/tasks/publish.rb
rake_docker-2.20.0.pre.1 lib/rake_docker/tasks/publish.rb
rake_docker-2.19.0 lib/rake_docker/tasks/publish.rb
rake_docker-2.18.0.pre.6 lib/rake_docker/tasks/publish.rb
rake_docker-2.18.0.pre.5 lib/rake_docker/tasks/publish.rb
rake_docker-2.18.0.pre.4 lib/rake_docker/tasks/publish.rb