shards 2.2.3.pre.test → 2.2.4.pre.test

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: 2c41ffbf864c292d3d8ca3c86b1bda3cfd7d0a66
4
- data.tar.gz: 8916a933344b218f9e9d1312d4bf9d1c47a0c43d
3
+ metadata.gz: 1486a7ef0de160d545393b15f763145a811c1390
4
+ data.tar.gz: 4c7adccdeac007811474302ba6779541399c8dd3
5
5
  SHA512:
6
- metadata.gz: 85ae0726ea06b8139ec2ae4456a99acc7b26b19270b11e495dac651d000d62188ca4ddca364976299f3c43d485da72c70ac2c67ef277af908558f453e3c13f62
7
- data.tar.gz: 91907e6668a4fade559924f99fbc216aed6c5d19cabdf8151a4f4cb939335fd42af48263d5116f3c931fe3e3d576ba327c8dcce3a5e341cf457cdb24d406b41e
6
+ metadata.gz: ef87fb20e6d42ed8ffdc8de05dfd09f1a7068f0405a9ea57f4fb2e4ded1a46a7a68c9500ae1464f34049a81b9f253cae80077df1b4c330bc532d3ffb52ea991d
7
+ data.tar.gz: 0eac32267ddb7f6b3123097aee812190b98c99e888039d5ce5a6fa80ca6764edff21c809c4d43a46cd6a628c367e8e96b7e723dea04aae1fd06d3b208ac7df4f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shards (2.2.3.pre.test)
4
+ shards (2.2.4.pre.test)
5
5
  aws-sdk-ec2 (~> 1.48)
6
6
  aws-sdk-elasticloadbalancing (~> 1.5)
7
7
  aws-sdk-elasticloadbalancingv2 (~> 1.14)
@@ -1,3 +1,3 @@
1
1
  module Shards
2
- VERSION = "2.2.3-test"
2
+ VERSION = "2.2.4-test"
3
3
  end
@@ -23,7 +23,7 @@ module Shards
23
23
  dns.delete
24
24
  message_params= [dns.host_param, dns.resource_records.to_s]
25
25
  raise_wrong_text message_params if dns.exist?
26
- ouptput_message step['message'] % message_params
26
+ output_message step['message'] % message_params
27
27
  end
28
28
  end
29
29
 
@@ -46,11 +46,11 @@ module Shards
46
46
  end
47
47
 
48
48
  def commit_changes
49
- ouptput_message config.repo.diff
49
+ output_message config.repo.diff
50
50
  config.repo.message = "Deleted site: #{params[:subdomain]} and shard: #{@shard_name} in #{location.name}"
51
51
  config.repo.autocommit
52
- ouptput_message step['message']
53
- ouptput_message config.repo.message
52
+ output_message step['message']
53
+ output_message config.repo.message
54
54
  end
55
55
 
56
56
  def delete_database
@@ -65,24 +65,24 @@ module Shards
65
65
 
66
66
  db.servers_to_drop.each do |host|
67
67
 
68
- ouptput_message "Database:\t #{database_to_drop}"
69
- ouptput_message "Host: \t #{host}"
70
- ouptput_message "Do you want to delete the above database? (y) to confirm, another string to not."
68
+ output_message "Database:\t #{database_to_drop}"
69
+ output_message "Host: \t #{host}"
70
+ output_message "Do you want to delete the above database? (y) to confirm, another string to not."
71
71
 
72
72
  answer=$stdin.gets
73
73
 
74
74
  if answer.chomp.downcase=='y'
75
- ouptput_message "DELETING database #{database_to_drop} in #{host}"
75
+ output_message "DELETING database #{database_to_drop} in #{host}"
76
76
  db.server=host
77
77
  db.drop
78
78
  else
79
- ouptput_message "KEEP database #{database_to_drop} in #{host}"
79
+ output_message "KEEP database #{database_to_drop} in #{host}"
80
80
  end
81
- ouptput_message "-" * 50
81
+ output_message "-" * 50
82
82
  end
83
83
 
84
84
  raise_wrong_text database_to_drop if db.exist? database_to_drop
85
- ouptput_message step['message'] % database_to_drop
85
+ output_message step['message'] % database_to_drop
86
86
 
87
87
  else
88
88
  output_message "The shard is in use by other site, will not be deleted"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shards
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3.pre.test
4
+ version: 2.2.4.pre.test
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego PL