Sha256: a5a31d66123639ad63727dcfe9b9af2998584a21978aa53e8e3ed1513f023256
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
require 'awestruct/deployers' require 'git' module Awestruct module Deploy class Base UNCOMMITTED_CHANGES = "You have uncommitted changes in the working branch. Please commit or stash them." def run(deploy_config) if deploy_config['uncommitted'] == true publish_site else git.status.changed.empty? ? publish_site : existing_changes end end def git @git ||= ::Git.open('.') end def publish_site $stderr.puts( "#{self.class.name}#publish_site not implemented." ) end def existing_changes $stderr.puts UNCOMMITTED_CHANGES end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
awestruct-0.4.8 | lib/awestruct/deploy/base_deploy.rb |
awestruct-0.4.7 | lib/awestruct/deploy/base_deploy.rb |