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.18.0.pre.3 lib/rake_docker/tasks/publish.rb
rake_docker-2.18.0.pre.2 lib/rake_docker/tasks/publish.rb
rake_docker-2.18.0.pre.1 lib/rake_docker/tasks/publish.rb
rake_docker-2.17.0 lib/rake_docker/tasks/publish.rb
rake_docker-2.16.0.pre.1 lib/rake_docker/tasks/publish.rb
rake_docker-2.15.0 lib/rake_docker/tasks/publish.rb
rake_docker-2.14.0.pre.4 lib/rake_docker/tasks/publish.rb
rake_docker-2.14.0.pre.3 lib/rake_docker/tasks/publish.rb
rake_docker-2.14.0.pre.2 lib/rake_docker/tasks/publish.rb
rake_docker-2.14.0.pre.1 lib/rake_docker/tasks/publish.rb
rake_docker-2.13.0 lib/rake_docker/tasks/publish.rb
rake_docker-2.12.0.pre.2 lib/rake_docker/tasks/publish.rb
rake_docker-2.12.0.pre.1 lib/rake_docker/tasks/publish.rb
rake_docker-2.11.0 lib/rake_docker/tasks/publish.rb
rake_docker-2.10.0.pre.1 lib/rake_docker/tasks/publish.rb
rake_docker-2.9.0 lib/rake_docker/tasks/publish.rb
rake_docker-2.8.0.pre.1 lib/rake_docker/tasks/publish.rb
rake_docker-2.7.0 lib/rake_docker/tasks/publish.rb
rake_docker-2.6.0.pre.1 lib/rake_docker/tasks/publish.rb
rake_docker-2.5.0 lib/rake_docker/tasks/publish.rb