opsworks 0.0.12 → 0.0.13

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: d9a072f70453115aecb14dd6d89b06a53d0755a5
4
- data.tar.gz: 51816691809d075b6147c008e2351baeae4f90ba
3
+ metadata.gz: 85a59b2adecb2ddabe49220d7750202d1cb87195
4
+ data.tar.gz: d04a9012af41e3715ae64133f6406226154aa297
5
5
  SHA512:
6
- metadata.gz: 8b2898d9b42baee528e1f511a8a8b53eac310808abb14b5981e371f4a0e3d3abc43b91ade936c13200eee4f499ecd8cf165210e10f34244b94289ccbf081b702
7
- data.tar.gz: 64a66e102bba8012f132bf6364b1c50249e185b0f1bbbe2e51f9816346cda185963eabbd6511d427604d81174b0743fe638f53ac57deb59270827d7fe32d8ee7
6
+ metadata.gz: 740e793648ab4b50b19941c268004410910ca8618c5002b34fdb2d12405d0c1b92250774bf78c2943086a3d3c2c6a63f909213a2a3e1acaba1d48cd9331cf5bf
7
+ data.tar.gz: c135e453012bcb04985f19e6e9b6e2dad26d5b0cbed9deb72c9fb7dd69037866c7df522c7059c84bc7ad00588e797474ed3d41466d86435a00ae74990ef98dd0
data/README.md CHANGED
@@ -17,8 +17,8 @@ Run `opsworks` with one of the following commands:
17
17
  This gem uses the same configuration file as the [AWS CLI][aws_cli]. This
18
18
  requires you to have a working AWS CLI setup before continuing.
19
19
 
20
- Add the following section to the file pointed out by the `AWS_CONFIG_FILE`
21
- environment variable:
20
+ Add the following section to `~/.aws/config` or to the file pointed out by the
21
+ `AWS_CONFIG_FILE` environment variable:
22
22
 
23
23
  [opsworks]
24
24
  stack-id=<MY STACK IDs>
@@ -9,7 +9,9 @@ module OpsWorks
9
9
  attr_reader :stacks, :ssh_user_name
10
10
 
11
11
  def initialize
12
- ini = IniFile.load(ENV["AWS_CONFIG_FILE"])
12
+ file = ENV["AWS_CONFIG_FILE"] || "#{ENV['HOME']}/.aws/config"
13
+ raise "AWS config file not found" unless File.exists? file
14
+ ini = IniFile.load(file)
13
15
 
14
16
  aws_config = ini['default']
15
17
  AWS.config(
@@ -1,5 +1,5 @@
1
1
  module OpsWorks
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  AUTHORS = ["Adam Lindberg"]
4
4
  EMAIL = ["hello@alind.io"]
5
5
  DESCRIPTION = "Amazon OpsWorks CLI"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opsworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Lindberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-16 00:00:00.000000000 Z
11
+ date: 2013-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inifile
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.0.6
137
+ rubygems_version: 2.1.9
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Command line interface for Amazon OpsWorks