Sha256: 00f2aa846c8ee6fa34db47eb08f02434229c876a67fce6f669a8fdde2d7b27e2

Contents?: true

Size: 429 Bytes

Versions: 35

Compression:

Stored size: 429 Bytes

Contents

require 'active_attr'
require 'journey/resource'

module Journey
  class Configuration
    include ActiveAttr::Attributes
    include ActiveAttr::MassAssignment
    
    attribute :api_site
    attribute :api_user
    attribute :api_password

    def propagate!
      (Resource.descendants << Resource).each do |r|
        r.site = api_site
        r.user = api_user
        r.password = api_password
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
embark-journey-0.0.18 lib/journey/configuration.rb
embark-journey-0.0.17 lib/journey/configuration.rb
embark-journey-0.0.16 lib/journey/configuration.rb
embark-journey-0.0.15 lib/journey/configuration.rb
embark-journey-0.0.14 lib/journey/configuration.rb
embark-journey-0.0.13 lib/journey/configuration.rb
embark-journey-0.0.12 lib/journey/configuration.rb
embark-journey-0.0.11 lib/journey/configuration.rb
embark-journey-0.0.10 lib/journey/configuration.rb
embark-journey-0.0.9 lib/journey/configuration.rb
embark-journey-0.0.8 lib/journey/configuration.rb
embark-journey-0.0.7 lib/journey/configuration.rb
embark-journey-0.0.6 lib/journey/configuration.rb
embark-journey-0.0.5 lib/journey/configuration.rb
embark-journey-0.0.4 lib/journey/configuration.rb