ocular 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb9febb9ead769bb170b9406835b8f4e6bba4675
4
- data.tar.gz: 62cab485a6cd7f7fe34a0d8a805e6741bfafef7e
3
+ metadata.gz: 5734316babf983760e779dbef1b938338a5ef54b
4
+ data.tar.gz: 68804c9f0db1fe6b253de7a4bbe2f8c047259a85
5
5
  SHA512:
6
- metadata.gz: c6e3006809c816e35253d8493b5bf794e28235a9cea2f9d757ae710ae9a1e48031fb07744aa57c50ac5aaaf538dfa5d139dc574ab2427fc849faa829825391d1
7
- data.tar.gz: 787b19ac66bc07b31cd4d94d230c8fdafd9d8b276b650b56a0caeb75cc6796bd740a17293a79e63fd7a41a060cf8d25363d89912a66cda8be2886b7141bc1000
6
+ metadata.gz: c695a5772566fa2035f928300c39d9c60bf6bc2909724cbd68b7b6bd7d58c0dd61fa6f81388c16b4b5c48607ed048c13750e363c0e76ba1599b2dca3f8f20111
7
+ data.tar.gz: 94fed726b58179e26256ec8c0a4db5897e23ddeb75cd265e40c64e5a1990232bca18f202278562713181413ea90c64465668c1a1c3da3e93f25b2a01c58d5fbd
@@ -18,6 +18,7 @@ require 'ocular/dsl/logging.rb'
18
18
  require 'ocular/dsl/ssh.rb'
19
19
  require 'ocular/dsl/orbit.rb'
20
20
  require 'ocular/dsl/mysql.rb'
21
+ require 'ocular/dsl/mongo.rb'
21
22
  require 'ocular/dsl/rabbitmq.rb'
22
23
  require 'ocular/dsl/graphite.rb'
23
24
  require 'ocular/dsl/cache.rb'
@@ -1,20 +1,20 @@
1
1
  require 'logger'
2
- require 'mysql2'
2
+ require 'mongo'
3
3
 
4
4
  class Ocular
5
5
  module DSL
6
- module MySQL
6
+ module Mongo
7
7
 
8
8
  add_help "mongo", "Returns a mongodb client instance"
9
9
 
10
- def mongo(cluster = "default")
10
+ def mongo(cluster = :default)
11
11
  datasources = ::Ocular::Settings::get(:datasources)
12
12
  if !datasources or !datasources[:mongo]
13
13
  raise "No mongodb client settings"
14
14
  end
15
15
  connection_string = datasources[:mongo][cluster]
16
16
 
17
- return Mongo::Client.new(connection_string)
17
+ return ::Mongo::Client.new(connection_string)
18
18
  end
19
19
 
20
20
  end
@@ -17,6 +17,7 @@ class Ocular
17
17
  include Ocular::DSL::Etcd
18
18
  include Ocular::DSL::Orbit
19
19
  include Ocular::DSL::MySQL
20
+ include Ocular::DSL::Mongo
20
21
  include Ocular::DSL::RabbitMQ
21
22
  include Ocular::DSL::Graphite
22
23
  include Ocular::DSL::Cache
@@ -29,6 +29,7 @@ class Ocular
29
29
  include Ocular::DSL::Fog
30
30
  include Ocular::DSL::Etcd
31
31
  include Ocular::DSL::MySQL
32
+ include Ocular::DSL::Mongo
32
33
  include Ocular::DSL::RabbitMQ
33
34
  include Ocular::DSL::Graphite
34
35
  include Ocular::DSL::Cache
@@ -1,3 +1,3 @@
1
1
  class Ocular
2
- Version = "0.2.1"
2
+ Version = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juho Mäkinen