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

Version Path
chef_cap-0.3.23 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.22 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.21 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.20 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.19 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.18 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.17 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.16 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.15 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.14 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.13 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.12 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.11 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.10 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.9 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.8 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.7 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.6 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.5 recipes/lib/chef_cap_configuration.rb
chef_cap-0.3.4 recipes/lib/chef_cap_configuration.rb