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.2.1 lib/journey/configuration.rb
embark-journey-0.1.8 lib/journey/configuration.rb
embark-journey-0.1.7 lib/journey/configuration.rb
embark-journey-0.1.6 lib/journey/configuration.rb
embark-journey-0.1.5 lib/journey/configuration.rb
embark-journey-0.1.4 lib/journey/configuration.rb
embark-journey-0.1.3 lib/journey/configuration.rb
embark-journey-0.1.1 lib/journey/configuration.rb
embark-journey-0.1.0 lib/journey/configuration.rb
embark-journey-0.0.29 lib/journey/configuration.rb
embark-journey-0.0.28 lib/journey/configuration.rb
embark-journey-0.0.27 lib/journey/configuration.rb
embark-journey-0.0.26 lib/journey/configuration.rb
embark-journey-0.0.25 lib/journey/configuration.rb
embark-journey-0.0.24 lib/journey/configuration.rb
embark-journey-0.0.23 lib/journey/configuration.rb
embark-journey-0.0.22 lib/journey/configuration.rb
embark-journey-0.0.21 lib/journey/configuration.rb
embark-journey-0.0.20 lib/journey/configuration.rb
embark-journey-0.0.19 lib/journey/configuration.rb