mysql_replication_status 0.1.0
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.
- data/README +26 -0
- metadata +74 -0
data/README
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
mysql_replication_status
|
2
|
+
========
|
3
|
+
|
4
|
+
Utility to check the replication status between MySQL master and slave
|
5
|
+
dbs set up to replicate to each other
|
6
|
+
|
7
|
+
All that is needed is to specify the two dbs by their Rails database
|
8
|
+
config (environment) names (e.g. 'staging_master', 'staging_slave' or
|
9
|
+
whatever).
|
10
|
+
|
11
|
+
Examples
|
12
|
+
=========
|
13
|
+
|
14
|
+
# specify both master and slave db configs
|
15
|
+
status = MysqlReplicationStatus.new(:master => 'master', :slave => 'slave)
|
16
|
+
|
17
|
+
# default slave to the current environment
|
18
|
+
status = MysqlReplicationStatus.new(:master => 'master')
|
19
|
+
|
20
|
+
# override the default time to cache the statuses (in seconds)
|
21
|
+
status = MysqlReplicationStatus.new(:master => 'master', :slave => 'slave,
|
22
|
+
:refresh_time => 10)
|
23
|
+
|
24
|
+
# override the default database config file (not recommended)
|
25
|
+
status = MysqlReplicationStatus.new(:master => 'master', :slave => 'slave,
|
26
|
+
:db_config_file => 'foofile.txt')
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mysql_replication_status
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- bmpercy
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-10-15 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: activerecord
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.1.0
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: multiple_connection_handler
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.2
|
34
|
+
version:
|
35
|
+
description: Simple utility to check replication status between two dbs listed in Rails' database.yml. See README for more info.
|
36
|
+
email:
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files: []
|
42
|
+
|
43
|
+
files:
|
44
|
+
- README
|
45
|
+
has_rdoc: true
|
46
|
+
homepage:
|
47
|
+
licenses: []
|
48
|
+
|
49
|
+
post_install_message:
|
50
|
+
rdoc_options: []
|
51
|
+
|
52
|
+
require_paths:
|
53
|
+
- lib
|
54
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: 1.8.1
|
59
|
+
version:
|
60
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: "0"
|
65
|
+
version:
|
66
|
+
requirements: []
|
67
|
+
|
68
|
+
rubyforge_project:
|
69
|
+
rubygems_version: 1.3.5
|
70
|
+
signing_key:
|
71
|
+
specification_version: 3
|
72
|
+
summary: Utility for checking replication status between two dbs in Rails' database.yml
|
73
|
+
test_files: []
|
74
|
+
|