lib/docman/deployers/git_deployer.rb in docman-0.0.5 vs lib/docman/deployers/git_deployer.rb in docman-0.0.6
- old
+ new
@@ -2,12 +2,15 @@
module Deployers
class GitDeployer < Deployer
register_deployer :git_deployer
- def push(info, state_name)
- version = info['states'][state_name]['version']
- GitUtil.push(info['full_build_path'], version)
+ def push
+ root = @docroot_config.root
+ root.state = self['state']
+ GitUtil.commit(root['full_build_path'], root['full_build_path'], 'Updated version.yaml')
+ GitUtil.push(root['full_build_path'], root.version)
end
+
end
end
end