Sha256: 963f5e985ef5b4404bc30a96745620ac7deda2d1f7c0a331085e34bbf65dad3e

Contents?: true

Size: 555 Bytes

Versions: 4

Compression:

Stored size: 555 Bytes

Contents

class Capricorn::CLI::Deployer < Capricorn::CLI
  include Capricorn::Helpers

  namespace :deploy

  desc "version [VERSION]", "build the current version"
  def version(version=nil)
    gem = nil
    if version
      gem = Dir.glob("pkg/*-#{version}.gem").last
    else
      gem = Dir.glob("pkg/*.gem").sort do |a, b|
        File.stat(a).mtime <=> File.stat(b).mtime
      end.last
    end

    unless gem
      halt "Please build a gem first!"
    end

    $capr_gems_weak_push = true

    invoke "gems:push", [gem]
    invoke "apps:fupdate"
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
capricorn-2.0.11 lib/capricorn-client/cli/deployer.rb
capricorn-2.0.10 lib/capricorn-client/cli/deployer.rb
capricorn-2.0.9 lib/capricorn-client/cli/deployer.rb
capricorn-2.0.8 lib/capricorn-client/cli/deployer.rb