Sha256: 351da2d1569a7c31009b0f04960e05230afa002ae9450fe8d48214ba30fa9367

Contents?: true

Size: 470 Bytes

Versions: 15

Compression:

Stored size: 470 Bytes

Contents

module Rmd
  class Server
    class << self
      def all
        Configure.get['server'].keys
      end

      def get(name)
        Server.new(Configure.get['server'][name])
      end
    end

    attr_reader :config

    def initialize(config)
      @config = config
    end

    def url
      @config['url']
    end

    def token
      @config['token']
    end

    def master
      @config['master']
    end

    def nginx
      @config['nginx']
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rmdd-0.1.18 lib/rmd/server.rb
rmdd-0.1.17 lib/rmd/server.rb
rmdd-0.1.16 lib/rmd/server.rb
rmdd-0.1.15 lib/rmd/server.rb
rmdd-0.1.14 lib/rmd/server.rb
rmdd-0.1.13 lib/rmd/server.rb
rmdd-0.1.12 lib/rmd/server.rb
rmdd-0.1.11 lib/rmd/server.rb
rmdd-0.1.10 lib/rmd/server.rb
rmdd-0.1.9 lib/rmd/server.rb
rmdd-0.1.8 lib/rmd/server.rb
rmdd-0.1.7 lib/rmd/server.rb
rmdd-0.1.6 lib/rmd/server.rb
rmdd-0.1.5 lib/rmd/server.rb
rmdd-0.1.4 lib/rmd/server.rb