awsm 0.2.3 → 0.2.4

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/lib/awsm.rb +6 -0
  4. data/lib/awsm/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51fea1f6476f3e4d5e0262b69f74805079182d7a
4
- data.tar.gz: 4622721f521947a65aeb2e4350e50e50d02b54a2
3
+ metadata.gz: 7b9f623b7040ceb89a20642c97d6d2edd310c8b7
4
+ data.tar.gz: 43bba7cb18e8a41ab7d3adc7e5d25415d5bc4d47
5
5
  SHA512:
6
- metadata.gz: 2c1ddeb57df262dc9079498518baec241263f2b6151c24a3fe827c6ff4dd4c744570a9638ad1dd3621d4f5a90737d9aa7ec9eff43352cab851c7e1de6bdb435c
7
- data.tar.gz: 81bf040b7d01cc21958b9de84a00b68518bcb3825dfba81938af3ae8fa02ea0e24605087ade1c3f55d92f3ff3a5d42dcddaa6c39b7c8075b71b1a548c27bdd9b
6
+ metadata.gz: 15f46938d45c1146e3d1e6f6c3e4ad62ee17b4214d5d87dc953a409334336e039111631f54231e4edae6ea7360645609aabf80a3e080d449bef1a76570d9e704
7
+ data.tar.gz: 8a7f3412897097be9c609fef338d51c215d87c227dace647f3fbe6f4d5c2a9d42510dcdd028f17d272fd2a2a932c990880f190e5f81fbc1f81d0308624e3b2cd
data/README.md CHANGED
@@ -42,7 +42,7 @@ Awsm will read configuration from `~/.awsm.rb`. An example `~/.awsm.rb` file is
42
42
  ```
43
43
  Awsm::configure do |c|
44
44
 
45
- c.instance_table do |c|
45
+ c.table :instance do |c|
46
46
 
47
47
  # Define which fields to display in an instance table and in what order
48
48
  c.use_fields [ :environment, :name, :instance_id, :image_id, :launch_time, :state, :private_ip ]
@@ -54,6 +54,10 @@ Awsm::configure do |c|
54
54
 
55
55
  end
56
56
 
57
+ c.table :image do |c|
58
+ c.use_fields [ :image_id, :name, :creation_date ]
59
+ end
60
+
57
61
  c.dns do |c|
58
62
  c.hosted_zone '/hostedzone/somethingorother'
59
63
  end
@@ -22,4 +22,10 @@ require 'awsm/cli/unused'
22
22
  require 'awsm/cli/spin'
23
23
  require 'awsm/cli/main'
24
24
 
25
+ if !File.exists?( "#{ENV['HOME']}/.awsm.rb" )
26
+ puts "A configuration file is required at ~/.awsm.rb"
27
+ puts "See https://github.com/mduk/awsm/blob/master/README.md for an example config file."
28
+ exit
29
+ end
30
+
25
31
  require "#{ENV['HOME']}/.awsm"
@@ -1,3 +1,3 @@
1
1
  module Awsm
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kendell