awful 0.0.86 → 0.0.87

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: e8da5ea4f8afc4049b5d8d58f9f1e6a52b828313
4
- data.tar.gz: b52e3d63e2f66c77f764a678bb7391c98d0f3f7a
3
+ metadata.gz: fb08d4b75da85cfb4f6f2b6f2676a8262ac9d474
4
+ data.tar.gz: 441ceba1ce0b886929aa029cfd0bb48a97aeb82e
5
5
  SHA512:
6
- metadata.gz: fb73b79fc2ef0c404397651cca64c48a0681afc9aac2cba4c69b1f0c408d5a32e92e890851ad89bcce5979d86b3ba7a3d4eac53c751110d51363e6bc7801dc8c
7
- data.tar.gz: 543464df3ebaf303d640899c098f755577cb09feae7dbfaf869d67b14470f05094f262d95dc06e89fd65a80bb373bff5a59a9d91cfcff390c9bc23757e000dfe
6
+ metadata.gz: 1176e85a77999f0cbae504dbc4b66626d19bd8f3bc40e9623cb96aea81196a064dbe3445e96c0feba69b09effe22ca58b23b786b8075167198563943c84a7cbb
7
+ data.tar.gz: 957e18c950e2ff839ce8874aad720bdc614e202ccd4dc083c96a740641cb6243acf620774a6c1f3106a04e725aef86078dd1b6abc7f6fbf7576c59ea3aaed71a
data/bin/dyn CHANGED
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/ruby
2
2
  #-*- mode: ruby; -*-
3
+
4
+ require 'awful'
3
5
  require 'awful/dynamodb'
6
+
4
7
  Awful::DynamoDB.start(ARGV)
@@ -124,7 +124,7 @@ module Awful
124
124
  def find_instance(name)
125
125
  if name .nil?
126
126
  nil?
127
- elsif name.match(/^i-[\d[a-f]]{8}$/)
127
+ elsif name.match(/^i-[\d[a-f]]{8,17}$/)
128
128
  name
129
129
  else
130
130
  ec2.describe_instances.map(&:reservations).flatten.map(&:instances).flatten.find do |instance|
@@ -224,7 +224,7 @@ module Awful
224
224
  desc 'delete NAME', 'terminate a running instance'
225
225
  def delete(name)
226
226
  id =
227
- if name.match(/^i-[\d[a-f]]{8}$/)
227
+ if name.match(/^i-[\d[a-f]]{8,17}$/)
228
228
  name
229
229
  else
230
230
  ec2.describe_instances.map(&:reservations).flatten.map(&:instances).flatten.find do |instance|
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.86'
2
+ VERSION = '0.0.87'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.86
4
+ version: 0.0.87
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler