Sha256: d1030ba8e39f10252dd1b2e57cd7894fe41b809f9debbc85ea5c340d89d48e67

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 Bytes

Contents

module Pushwagner

  class Main
    def initialize(opts = {})
      @environment = Pushwagner::Environment.new(opts)
    end

    def set_environment(env)
      @environment.current = env.to_s
    end

    def set_version(version)
      @environment.version = version
    end

    def deploy(opts = {})
      Maven::Deployer.new(@environment, opts).deploy
      Static::Deployer.new(@environment, opts).deploy
    end

    def restart(opts = {})
      Supervisord::Restarter.new(@environment, opts).restart
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pushwagner-0.0.1 lib/pushwagner/main.rb