multi_ec2_kiq 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d54c1b4879b8e479d310c7ec683133f36d37a7b
4
- data.tar.gz: fdbf905399aeec95547880cce90a9121ecb17037
3
+ metadata.gz: fd81d8f6c468c6f119f2f912456b95f163ea02fd
4
+ data.tar.gz: d86dd543db73a65065b9161c655dbb7f950f71dc
5
5
  SHA512:
6
- metadata.gz: da6234e855b50d9152ac1ebf5d8657a30602931b4193f65a38bacfed640725424e50803fd8a8b7d9ab67f3131926f1cbfe1c49505d5da51b80d7e2451c55c041
7
- data.tar.gz: 4d148db6c7b87ed4f7aa4ee5dab855a65e6536d3bcffe1ed1951f744da077104e779667e89866ae9c2360861e88c7dd4469bcb212786eac8bbcd6d5363749605
6
+ metadata.gz: 0a1a15d922de7e59f24827d2bdb49f604e185ee2fab9052c1374af32b4375b5b1ae85760cc566304d6149e2537d9b439d0a163c55814becee13ab1b62a7d0cb9
7
+ data.tar.gz: 8d54b40d37ecb310034204158dfba648b780001cc1b42d7438923804209f5b1c2501f3929306943d81dc9ee50199c49bb2d607cde3490834b3efa0802de526be
data/README.md CHANGED
@@ -37,10 +37,13 @@ You have to set aws profile in your ~/.aws/credentials.
37
37
 
38
38
  Write configuration yml file, use "lib/settings.yml" as a reference.
39
39
 
40
- To create ec2-status-table on DynamoDB, you have to call Dynamodb::create_status_table method from rails console, ruby source, e.t.c.
40
+ To create ec2-status-table on DynamoDB, you have to call create_status_table method from rails console, ruby source, e.t.c.
41
41
  ```ruby
42
- dynamodb = Dynamodb.new
43
- dynamodb.create_status_table
42
+ require "multi_ec2_kiq"
43
+
44
+ include MultiEc2Kiq
45
+
46
+ MultiEc2Kiq.create_status_table
44
47
  ```
45
48
 
46
49
  Then, call methods.
@@ -1,3 +1,3 @@
1
1
  module MultiEc2Kiq
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/multi_ec2_kiq.rb CHANGED
@@ -22,6 +22,11 @@ module MultiEc2Kiq
22
22
  true
23
23
  end
24
24
 
25
+ def create_status_table
26
+ Settings.source(config_path)
27
+ Dynamodb.new.create_status_table
28
+ end
29
+
25
30
  def start_wait_until_stop
26
31
  Settings.source(config_path)
27
32
  instances = Settings.instances
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_ec2_kiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - SrcHndWng