Sha256: 4f76a45834b54bb718ea2f6f2261239da6248562c38f271c6daafaf58083013a

Contents?: true

Size: 432 Bytes

Versions: 8

Compression:

Stored size: 432 Bytes

Contents

module Rebuild::CLI
  class RbldPublishCommand < Command
    def initialize
      @usage = "publish [OPTIONS] [ENVIRONMENT[:TAG]]"
      @description = "Publish environment on remote registry"
    end

    def run(parameters)
      env = Environment.new( parameters[0] )
      rbld_log.info("Going to publish \"#{env}\"")
      engine_api.publish( env )
      rbld_print.progress "Successfully published #{env}\n"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rbld-1.3.2 cli/lib/commands/rbld_publish.rb
rbld-1.3.1 cli/lib/commands/rbld_publish.rb
rbld-1.3.0 cli/lib/commands/rbld_publish.rb
rbld-1.2.0 cli/lib/commands/rbld_publish.rb
rbld-1.1.0 cli/lib/commands/rbld_publish.rb
rbld-1.0.2 cli/lib/commands/rbld_publish.rb
rbld-1.0.1 cli/lib/commands/rbld_publish.rb
rbld-1.0.0 cli/lib/commands/rbld_publish.rb