Sha256: efc7ddb6c04f649330392720b6e3a5a9d64e59440a85f2443b0274e8f9997809

Contents?: true

Size: 627 Bytes

Versions: 17

Compression:

Stored size: 627 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
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
chef_cap-0.2.7 recipes/lib/chef_cap_configuration.rb
chef_cap-0.2.6 recipes/lib/chef_cap_configuration.rb
chef_cap-0.2.5 recipes/lib/chef_cap_configuration.rb
chef_cap-0.2.4 recipes/lib/chef_cap_configuration.rb
chef_cap-0.2.3 recipes/lib/chef_cap_configuration.rb
chef_cap-0.2.2 recipes/lib/chef_cap_configuration.rb
chef_cap-0.2.1 recipes/lib/chef_cap_configuration.rb
chef_cap-0.1.8 recipes/lib/chef_cap_configuration.rb
chef_cap-0.1.7 recipes/lib/chef_cap_configuration.rb
chef_cap-0.1.6 recipes/lib/chef_cap_configuration.rb
chef_cap-0.1.5 recipes/lib/chef_cap_configuration.rb
chef_cap-0.1.4 recipes/lib/chef_cap_configuration.rb
chef_cap-0.1.3 recipes/lib/chef_cap_configuration.rb
chef_cap-0.1.2 recipes/lib/chef_cap_configuration.rb
chef_cap-0.1.1 recipes/lib/chef_cap_configuration.rb
chef_cap-0.0.7 recipes/lib/chef_cap_configuration.rb
chef_cap-0.0.5 recipes/lib/chef_cap_configuration.rb