Sha256: 71ed5df2d999f78cc5fbe0673f8ee482e6a854b59893fc56cc725689f676896b
Contents?: true
Size: 1.35 KB
Versions: 6
Compression:
Stored size: 1.35 KB
Contents
# # Copyright:: Copyright (c) 2013 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # require 'omnibus/cli/base' require 'omnibus/cli/application' require 'omnibus/package_release' require 'json' module Omnibus module CLI class Release < Base namespace :release def initialize(args, options, config) super(args, options, config) end desc "package PATH", "Upload a single package to S3" option :public, :type => :boolean, :default => false, :desc => "Make S3 object publicly readable" def package(path) access_policy = options[:public] ? :public_read : :private uploader = PackageRelease.new(path, :access => access_policy) do |uploaded_item| say("Uploaded #{uploaded_item}", :green) end uploader.release end end end end
Version data entries
6 entries across 6 versions & 2 rubygems