Sha256: 0379096d99dcdfd44e442d5cc54c2846fd4f76a9f210c0b695547ea182be13b1

Contents?: true

Size: 576 Bytes

Versions: 7

Compression:

Stored size: 576 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.to_s
    end

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pushwagner-0.0.1.7 lib/pushwagner/main.rb
pushwagner-0.0.1.6 lib/pushwagner/main.rb
pushwagner-0.0.1.5 lib/pushwagner/main.rb
pushwagner-0.0.1.4 lib/pushwagner/main.rb
pushwagner-0.0.1.3 lib/pushwagner/main.rb
pushwagner-0.0.1.2 lib/pushwagner/main.rb
pushwagner-0.0.1.1 lib/pushwagner/main.rb