lib/application.rb in docman-0.0.69 vs lib/application.rb in docman-0.0.70
- old
+ new
@@ -14,10 +14,11 @@
require 'docman/builders/builder'
require 'docman/builders/dir_builder'
require 'docman/builders/symlink_builder'
require 'docman/builders/git_direct_builder'
+require 'docman/builders/git_root_chain_builder'
require 'docman/builders/git_strip_builder'
require 'docman/builders/drupal_drush_builder'
require 'docman/deployers/deployer'
require 'docman/deployers/git_deployer'
require 'docman/deployers/common_deployer'
@@ -25,27 +26,29 @@
require 'docman/commands/composite_command'
require 'docman/commands/create_symlink_cmd'
require 'docman/commands/execute_script_cmd'
require 'docman/commands/clean_changed_cmd'
require 'docman/commands/git_commit_cmd'
+require 'docman/commands/git_copy_repo_content_cmd'
require 'docman/taggers/tagger'
require 'docman/taggers/incremental_tagger'
require 'docman/taggers/option_tagger'
module Docman
class Application < Docman::Command
attr_reader :config, :docroot_config
- attr_accessor :deploy_target, :options, :force
+ attr_accessor :deploy_target, :options, :force, :commit_count
include Singleton
include Docman::Context
def initialize
# TODO: Define workspace properly
@workspace_dir = Dir.pwd
@config = Docman::Config.new(File.join(Pathname(__FILE__).dirname.parent, 'config', 'config.yaml'))
@force = false
+ @commit_count = 0
end
def init(name, repo, options)
branch = options['branch'] ? options['branch'] : 'master'
`mkdir #{name}`