skyeye 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/skyeye/exec.rb CHANGED
@@ -2,13 +2,14 @@ require "logger"
2
2
  require "pp"
3
3
  require "json"
4
4
  require "open4"
5
+ require "open-uri"
5
6
 
6
7
  module SkyEye
7
8
  class Exec
8
9
  attr_accessor :config
9
10
 
10
11
  def instance_id
11
- "i-d3b842a1"
12
+ @instance_id ||= open("http://169.254.169.254/latest/meta-data/instance-id").read
12
13
  end
13
14
 
14
15
  def go(*args)
@@ -1,3 +1,3 @@
1
1
  module Skyeye
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skyeye
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
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: 2013-03-14 00:00:00.000000000 Z
12
+ date: 2013-03-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: SkyEye is a daemon that lets you have nagios-like alerts on EC2 using
15
15
  CloudWatch.