Sha256: 55f373b76763957e8547532e9eaab6a967a9fabb942590ca6740e4328b09bd0a
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
module Shuttle class Deploy include Shuttle::Helpers include Shuttle::PathHelpers attr_reader :ssh attr_reader :target attr_reader :environment attr_reader :version attr_reader :config def initialize(config, ssh, target, environment) @config = config @target = target @ssh = ssh @environment = environment if ssh.file_exists?(version_path) res = ssh.capture("cat #{version_path}") @version = (res.empty? ? 1 : Integer(res) + 1).to_s else @version = 1 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shuttle-deploy-0.2.0.beta2 | lib/shuttle/deploy.rb |