sr-scripts 0.1.20 → 0.1.21

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.
@@ -63,14 +63,18 @@ def get_public_ip(fog, instance_id)
63
63
  return fog.servers.get(instance_id).public_ip_address
64
64
  end
65
65
 
66
+ def get_private_ip(fog, instance_id)
67
+ return fog.servers.get(instance_id).private_ip_address
68
+ end
69
+
66
70
  fog_current_master = connection_current_master.servers.get(options[:current_master_id])
67
71
  fog_new_master = connection_new_master.servers.get(options[:new_master_id])
68
72
 
69
73
  mysql_user = options[:mysql_user]
70
74
  mysql_pass = options[:mysql_password]
71
75
 
72
- current_master_ip = get_public_ip(connection_current_master, options[:current_master_id])
73
- new_master_ip = get_public_ip(connection_new_master, options[:new_master_id])
76
+ current_master_ip = get_private_ip(connection_current_master, options[:current_master_id])
77
+ new_master_ip = get_private_ip(connection_new_master, options[:new_master_id])
74
78
 
75
79
  current_master_mysql, new_master_mysql = nil
76
80
 
@@ -1,5 +1,5 @@
1
1
  module Sr
2
2
  module Scripts
3
- VERSION = "0.1.20"
3
+ VERSION = "0.1.21"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sr-scripts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-16 00:00:00.000000000 Z
12
+ date: 2014-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog