Class: Omnibus::Command::Publish

Inherits:
Base
  • Object
show all
Defined in:
lib/omnibus/cli/publish.rb

Instance Method Summary collapse

Methods inherited from Base

dispatch, exit_on_failure?, #help, #initialize

Methods included from Logging

included

Constructor Details

This class inherits a constructor from Omnibus::Command::Base

Instance Method Details

#artifactory(repository, pattern) ⇒ Object



78
79
80
81
82
83
84
85
86
87
# File 'lib/omnibus/cli/publish.rb', line 78

def artifactory(repository, pattern)
  if options[:version_manifest]
    Omnibus.logger.deprecated("ArtifactoryPublisher") do
      "The `--version-manifest' option has been deprecated. Version manifest data is now part of the `*.metadata.json' file"
    end
  end

  options[:repository] = repository
  publish(ArtifactoryPublisher, pattern, options)
end

#s3(bucket, pattern) ⇒ Object



59
60
61
62
# File 'lib/omnibus/cli/publish.rb', line 59

def s3(bucket, pattern)
  options[:bucket] = bucket
  publish(S3Publisher, pattern, options)
end