Sha256: 76ce0d7bfe250d035631e2897dfecfd4575ca70da3d7af4663955edd27a7f1d7
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 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 git.status.changed.empty? ? publish_site : existing_changes 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
awestruct-0.4.6 | lib/awestruct/deploy/base_deploy.rb |