Sha256: ca0c4555134ae8bdec15e1dea1c2a362d1cf4e19890abac1655774d01b2dc36f
Contents?: true
Size: 826 Bytes
Versions: 22
Compression:
Stored size: 826 Bytes
Contents
class ChefCapConfiguration class << self attr_accessor :configuration def set_repository_settings repository_value = @configuration.send(:repository) rescue false case repository_value when /git/ @configuration.send(:set, :scm, :git) @configuration.send(:set, :git_enable_submodules, 1) @configuration.send(:default_run_options)[:pty] = true @configuration.send(:depend, :remote, :command, "git") when /svn/ @configuration.send(:set, :scm, :svn) @configuration.send(:depend, :remote, :command, "svn") end @configuration.send(:set, :revision, ChefCapHelper.set_revision) if ChefCapHelper.has_revision? @configuration.send(:set, :branch, ChefCapHelper.set_branch) if ChefCapHelper.has_branch? end end end
Version data entries
22 entries across 22 versions & 1 rubygems