Sha256: bcd236b51c8ca9ef6fddf910b7bd0226877f64130b46a29d6d8ed1d36b815f6e
Contents?: true
Size: 686 Bytes
Versions: 2
Compression:
Stored size: 686 Bytes
Contents
module Berkshelf::API::RSpec module Server class << self include Berkshelf::API::Mixin::Services def clear_cache cache_manager.clear end def instance Berkshelf::API::Application.instance end def running? Berkshelf::API::Application.running? end def start(options = {}) options = options.reverse_merge(port: 26210, log_location: "/dev/null", endpoints: []) Berkshelf::API::Application.config.endpoints = options[:endpoints] Berkshelf::API::Application.run!(options) unless running? end def stop Berkshelf::API::Application.shutdown end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
berkshelf-api-0.2.0 | lib/berkshelf/api/rspec/server.rb |
berkshelf-api-0.1.0 | lib/berkshelf/api/rspec/server.rb |