# File lib/chef/resource/scm.rb, line 30 def initialize(name, run_context=nil) super @destination = name @resource_name = :scm @enable_submodules = false @revision = "HEAD" @remote = "origin" @ssh_wrapper = nil @depth = nil @allowed_actions.push(:checkout, :export, :sync, :diff, :log) @action = [:sync] end
Capistrano and git-deploy use "shallow clone"
# File lib/chef/resource/scm.rb, line 117 def depth(arg=nil) set_or_return( :depth, arg, :kind_of => Integer ) end
# File lib/chef/resource/scm.rb, line 43 def destination(arg=nil) set_or_return( :destination, arg, :kind_of => String ) end
# File lib/chef/resource/scm.rb, line 125 def enable_submodules(arg=nil) set_or_return( :enable_submodules, arg, :kind_of => [TrueClass, FalseClass] ) end
# File lib/chef/resource/scm.rb, line 75 def group(arg=nil) set_or_return( :group, arg, :kind_of => [String, Integer] ) end
# File lib/chef/resource/scm.rb, line 133 def remote(arg=nil) set_or_return( :remote, arg, :kind_of => String ) end
# File lib/chef/resource/scm.rb, line 51 def repository(arg=nil) set_or_return( :repository, arg, :kind_of => String ) end
# File lib/chef/resource/scm.rb, line 59 def revision(arg=nil) set_or_return( :revision, arg, :kind_of => String ) end
# File lib/chef/resource/scm.rb, line 141 def ssh_wrapper(arg=nil) set_or_return( :ssh_wrapper, arg, :kind_of => String ) end
# File lib/chef/resource/scm.rb, line 99 def svn_arguments(arg=nil) @svn_arguments, arg = nil, nil if arg == false set_or_return( :svn_arguments, arg, :kind_of => String ) end
# File lib/chef/resource/scm.rb, line 108 def svn_info_args(arg=nil) @svn_info_args, arg = nil, nil if arg == false set_or_return( :svn_info_args, arg, :kind_of => String) end
# File lib/chef/resource/scm.rb, line 91 def svn_password(arg=nil) set_or_return( :svn_password, arg, :kind_of => String ) end
Generated with the Darkfish Rdoc Generator 2.