omc 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/lib/omc/cli.rb +9 -2
- data/lib/omc/stack_command.rb +1 -1
- data/lib/omc/version.rb +1 -1
- data/omc.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 977cd44ae25bb428a5c56c07fee1a21729d67d87
|
4
|
+
data.tar.gz: 7689eae0a0e064b0476a4efe1c76df639b8ec0a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: facc0476198920a0653a7704fc8b2f7d672ac61cfddde377f0012af75b57e75180aaaa88f6db61a4981ebd44b951fbefcf833e2c87c9813810d6a4377b4e0f71
|
7
|
+
data.tar.gz: 4e14c2c271e77af3dc0f9007332f13f06c6fa325d017e41ad6b333e811dd1a46b9b38c4eebfb1fec45703f0515cde8c9631a3c1ea72d6db26002678a3b83b6b2
|
data/README.md
CHANGED
@@ -9,6 +9,19 @@ Useful commands for dealing with AWS and opsworks across multiple IAM accounts.
|
|
9
9
|
gem install omc
|
10
10
|
```
|
11
11
|
|
12
|
+
### Config
|
13
|
+
|
14
|
+
omc supports a configuration file to specify your account rather than providing
|
15
|
+
it with the `-a` flag. Formatted like so:
|
16
|
+
|
17
|
+
```toml
|
18
|
+
account = "zerg"
|
19
|
+
```
|
20
|
+
|
21
|
+
It can be located at `~/.omcrc`, `~/.config/omcrc`, or local to where you're running
|
22
|
+
your command `.omcrc`
|
23
|
+
|
24
|
+
|
12
25
|
### AWS Cred Vault
|
13
26
|
|
14
27
|
omc works off of [aws_cred_vault](http://www.github.com/cbrunsdon/aws_cred_vault) and requires an ~/.aws_cred_vault file to exist. This file should be populated with your different IAM accounts and users.
|
data/lib/omc/cli.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'aws_cred_vault'
|
3
|
-
require 'aws-sdk'
|
3
|
+
require 'aws-sdk-v1'
|
4
4
|
require "omc/stack_command"
|
5
5
|
require "omc/config"
|
6
6
|
|
@@ -26,7 +26,14 @@ module Omc
|
|
26
26
|
|
27
27
|
desc 'ssh_exec STACK COMMAND', 'Connect to an instance on a stack on an account and execute a command'
|
28
28
|
def ssh_exec(stack, user_command)
|
29
|
-
command = StackCommand.new(
|
29
|
+
command = StackCommand.new(
|
30
|
+
aws_account,
|
31
|
+
user,
|
32
|
+
stack,
|
33
|
+
layer: options[:layer],
|
34
|
+
forward_agent: options[:forward_agent],
|
35
|
+
remote_forward: options[:remote_forward]
|
36
|
+
)
|
30
37
|
command.ssh_and_execute user_command
|
31
38
|
end
|
32
39
|
|
data/lib/omc/stack_command.rb
CHANGED
data/lib/omc/version.rb
CHANGED
data/omc.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.add_dependency "thor", '~> 0.19'
|
21
21
|
spec.add_dependency "aws_cred_vault", '~> 0.0.7'
|
22
|
-
spec.add_dependency "aws-sdk", '~> 1.56'
|
22
|
+
spec.add_dependency "aws-sdk-v1", '~> 1.56'
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.7"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clarke Brunsdon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.0.7
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: aws-sdk
|
42
|
+
name: aws-sdk-v1
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.
|
142
|
+
rubygems_version: 2.2.2
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Opsworks Missing Console - Useful Commands for Opsworks
|