Sha256: 19a2d4a26b93895a660d47ba593a242c69503e2569fedf30b184056eafaf35cd
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 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 = {}) puts "Deploying to #{@environment.current} environment:" @environment.hosts.each { |h| puts " - #{@environment.user}@#{h}"} 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pushwagner-0.0.1.8 | lib/pushwagner/main.rb |