Sha256: 0ac67ba03d3b26c4b04fa0c950f7c912d8b2e80cc8a364bfc939011765626c00

Contents?: true

Size: 310 Bytes

Versions: 13

Compression:

Stored size: 310 Bytes

Contents

module Serverspec
  module Configuration
    class << self
      VALID_OPTIONS_KEYS = [:path, :pre_command, :stdout, :stderr, :sudo_path].freeze
      attr_accessor(*VALID_OPTIONS_KEYS)
    
      def defaults
        VALID_OPTIONS_KEYS.inject({}) { |o, k| o.merge!(k => send(k)) }
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
serverspec-0.9.4 lib/serverspec/configuration.rb
serverspec-0.9.3 lib/serverspec/configuration.rb
serverspec-0.9.2 lib/serverspec/configuration.rb
serverspec-0.9.1 lib/serverspec/configuration.rb
serverspec-0.9.0 lib/serverspec/configuration.rb
serverspec-0.8.1 lib/serverspec/configuration.rb
serverspec-0.8.0 lib/serverspec/configuration.rb
serverspec-0.7.13 lib/serverspec/configuration.rb
serverspec-0.7.12 lib/serverspec/configuration.rb
serverspec-0.7.11 lib/serverspec/configuration.rb
serverspec-0.7.10 lib/serverspec/configuration.rb
serverspec-0.7.9 lib/serverspec/configuration.rb
serverspec-0.7.8 lib/serverspec/configuration.rb