Sha256: fc8e8c5922dcd61e2fc010e6ce87b80f15171cc25e7c15daed833f1763e7e55e

Contents?: true

Size: 833 Bytes

Versions: 38

Compression:

Stored size: 833 Bytes

Contents

require 'rake_factory'

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

      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

38 entries across 38 versions & 1 rubygems

Version Path
rake_docker-2.4.0.pre.13 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.12 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.11 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.10 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.9 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.8 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.7 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.6 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.5 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.4 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.3 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.2 lib/rake_docker/tasks/publish.rb
rake_docker-2.4.0.pre.1 lib/rake_docker/tasks/publish.rb
rake_docker-2.3.0 lib/rake_docker/tasks/publish.rb
rake_docker-2.2.0.pre.1 lib/rake_docker/tasks/publish.rb
rake_docker-2.1.0 lib/rake_docker/tasks/publish.rb
rake_docker-2.0.0.pre.2 lib/rake_docker/tasks/publish.rb
rake_docker-1.4.0.pre.1 lib/rake_docker/tasks/publish.rb