claws 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +2 -2
- data/lib/claws/report/ec2.rb +3 -2
- data/lib/claws/version.rb +1 -1
- data/spec/collection/ec2_spec.rb +5 -5
- data/spec/command/ec2_spec.rb +5 -5
- data/spec/configuration_spec.rb +1 -1
- data/spec/presenter/ec2_spec.rb +1 -1
- metadata +31 -25
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 855c0ae794a8865bd37110dc8a4dcb434f98fe44
|
4
|
+
data.tar.gz: 7d5c3ad175282430194ff6f9b3da8e191d99fe77
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dd1bf3dec56e73410f1fde81d61e7a66beda9100c12b86b8ce0c9d96063826dac907c4c51839120e8b47fde58653595997e2750f6bd62109ebf7d35d9656be44
|
7
|
+
data.tar.gz: 4ddb6c2ae588aa139a5579acc9414ba107d4e9d6852e6152d3b44d9364e0513b3f0e7d858ffb7e351caff68245bacb3eb607f2c721ac32915eba434297fdbacb
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## Command Line AWS (CLAWS) [![Build Status](https://secure.travis-ci.org/wbailey/claws.png?branch=master)](http://travis-ci.org/wbailey/claws)
|
1
|
+
## Command Line AWS (CLAWS) [![Build Status](https://secure.travis-ci.org/wbailey/claws.png?branch=master)](http://travis-ci.org/wbailey/claws) [![Code Climate](https://codeclimate.com/github/wbailey/claws.png)](https://codeclimate.com/github/wbailey/claws)
|
2
2
|
|
3
3
|
This tool provides a simple and powerful way to interact with the hosts in your Amazon Web Services
|
4
4
|
account via the command line.
|
@@ -64,7 +64,7 @@ Usage: claws [options]
|
|
64
64
|
|
65
65
|
### License
|
66
66
|
|
67
|
-
Copyright (c) 2011-
|
67
|
+
Copyright (c) 2011-2014 Wes Bailey
|
68
68
|
|
69
69
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
70
70
|
associated documentation files (the "Software"), to deal in the Software without restriction,
|
data/lib/claws/report/ec2.rb
CHANGED
@@ -36,12 +36,13 @@ module Claws
|
|
36
36
|
'white'
|
37
37
|
end
|
38
38
|
|
39
|
-
row do
|
39
|
+
row color: 'white' do
|
40
40
|
column choice
|
41
41
|
|
42
42
|
self.config.ec2.fields.each do |field, properties|
|
43
43
|
props = ( field == 'status' ) ? {:color => color} : {}
|
44
|
-
|
44
|
+
field_alias = field == 'id' ? 'instance_id' : field # This makes 1.8.7 not spit out a warning
|
45
|
+
column i.send( field_alias ), props
|
45
46
|
end
|
46
47
|
end
|
47
48
|
|
data/lib/claws/version.rb
CHANGED
data/spec/collection/ec2_spec.rb
CHANGED
@@ -20,7 +20,7 @@ describe Claws::Collection::EC2 do
|
|
20
20
|
[
|
21
21
|
double('AWS::EC2::Instance'),
|
22
22
|
double('AWS::EC2::Instance'),
|
23
|
-
]
|
23
|
+
]
|
24
24
|
),
|
25
25
|
double('AWS::EC2::Region',
|
26
26
|
:name => 'eu-east-1',
|
@@ -28,7 +28,7 @@ describe Claws::Collection::EC2 do
|
|
28
28
|
[
|
29
29
|
double('AWS::EC2::Instance'),
|
30
30
|
double('AWS::EC2::Instance'),
|
31
|
-
]
|
31
|
+
]
|
32
32
|
),
|
33
33
|
]
|
34
34
|
end
|
@@ -44,7 +44,7 @@ describe Claws::Collection::EC2 do
|
|
44
44
|
|
45
45
|
config = double('Claws::Configuration',
|
46
46
|
:aws => credentials,
|
47
|
-
:ec2 => OpenStruct.new({:regions => nil})
|
47
|
+
:ec2 => OpenStruct.new({:regions => nil})
|
48
48
|
)
|
49
49
|
|
50
50
|
subject.new(config).get.size.should == 4
|
@@ -60,7 +60,7 @@ describe Claws::Collection::EC2 do
|
|
60
60
|
|
61
61
|
config = double('Claws::Configuration',
|
62
62
|
:aws => credentials,
|
63
|
-
:ec2 => OpenStruct.new({:regions => %w(us-east-1 eu-east-1)})
|
63
|
+
:ec2 => OpenStruct.new({:regions => %w(us-east-1 eu-east-1)})
|
64
64
|
)
|
65
65
|
|
66
66
|
subject.new(config).get.size.should == 4
|
@@ -77,7 +77,7 @@ describe Claws::Collection::EC2 do
|
|
77
77
|
|
78
78
|
config = double('Claws::Configuration',
|
79
79
|
:aws => credentials,
|
80
|
-
:ec2 => OpenStruct.new({:regions => %w(us-east-1)})
|
80
|
+
:ec2 => OpenStruct.new({:regions => %w(us-east-1)})
|
81
81
|
)
|
82
82
|
|
83
83
|
subject.new(config).get.size.should == 2
|
data/spec/command/ec2_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe Claws::Command::EC2 do
|
|
12
12
|
|
13
13
|
expect {
|
14
14
|
subject.exec options
|
15
|
-
}.
|
15
|
+
}.to raise_exception SystemExit
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'invalid file' do
|
@@ -22,7 +22,7 @@ describe Claws::Command::EC2 do
|
|
22
22
|
|
23
23
|
expect {
|
24
24
|
subject.exec options
|
25
|
-
}.
|
25
|
+
}.to raise_exception SystemExit
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -73,7 +73,7 @@ describe Claws::Command::EC2 do
|
|
73
73
|
|
74
74
|
expect {
|
75
75
|
subject.exec options
|
76
|
-
}.
|
76
|
+
}.to raise_exception
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
@@ -90,7 +90,7 @@ describe Claws::Command::EC2 do
|
|
90
90
|
capture_stdout {
|
91
91
|
subject.exec options
|
92
92
|
}
|
93
|
-
}.
|
93
|
+
}.to_not raise_exception
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
@@ -210,7 +210,7 @@ describe Claws::Command::EC2 do
|
|
210
210
|
capture_stdout {
|
211
211
|
subject.exec options
|
212
212
|
}
|
213
|
-
}.
|
213
|
+
}.to raise_exception SystemExit
|
214
214
|
end
|
215
215
|
end
|
216
216
|
end
|
data/spec/configuration_spec.rb
CHANGED
data/spec/presenter/ec2_spec.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: claws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Wes
|
@@ -10,41 +9,50 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2014-06-08 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: bundler
|
17
|
-
requirement:
|
18
|
-
none: false
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - ">="
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: 1.0.0
|
23
21
|
type: :development
|
24
22
|
prerelease: false
|
25
|
-
version_requirements:
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 1.0.0
|
26
28
|
- !ruby/object:Gem::Dependency
|
27
29
|
name: command_line_reporter
|
28
|
-
requirement:
|
29
|
-
none: false
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
|
-
- -
|
32
|
+
- - ">="
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: 3.2.1
|
34
35
|
type: :runtime
|
35
36
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 3.2.1
|
37
42
|
- !ruby/object:Gem::Dependency
|
38
43
|
name: aws-sdk
|
39
|
-
requirement:
|
40
|
-
none: false
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
41
45
|
requirements:
|
42
|
-
- -
|
46
|
+
- - ">="
|
43
47
|
- !ruby/object:Gem::Version
|
44
48
|
version: '1.0'
|
45
49
|
type: :runtime
|
46
50
|
prerelease: false
|
47
|
-
version_requirements:
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '1.0'
|
48
56
|
description: A command line tool that provides a configurable report on the status
|
49
57
|
of all of your EC2 hosts and provides trivial ssh access for connectivity. Never
|
50
58
|
copy and paste the public dns for a host again!
|
@@ -54,6 +62,9 @@ executables:
|
|
54
62
|
extensions: []
|
55
63
|
extra_rdoc_files: []
|
56
64
|
files:
|
65
|
+
- README.md
|
66
|
+
- bin/claws
|
67
|
+
- lib/claws.rb
|
57
68
|
- lib/claws/capistrano.rb
|
58
69
|
- lib/claws/collection/base.rb
|
59
70
|
- lib/claws/collection/ec2.rb
|
@@ -66,8 +77,6 @@ files:
|
|
66
77
|
- lib/claws/report/ec2.rb
|
67
78
|
- lib/claws/support.rb
|
68
79
|
- lib/claws/version.rb
|
69
|
-
- lib/claws.rb
|
70
|
-
- README.md
|
71
80
|
- spec/base_spec.rb
|
72
81
|
- spec/capistrano_spec.rb
|
73
82
|
- spec/collection/base_spec.rb
|
@@ -80,31 +89,28 @@ files:
|
|
80
89
|
- spec/spec_helper.rb
|
81
90
|
- spec/support/helpers/stdout_helper.rb
|
82
91
|
- spec/support_spec.rb
|
83
|
-
- !binary |-
|
84
|
-
YmluL2NsYXdz
|
85
92
|
homepage: http://github.com/wbailey/claws
|
86
93
|
licenses: []
|
94
|
+
metadata: {}
|
87
95
|
post_install_message:
|
88
96
|
rdoc_options: []
|
89
97
|
require_paths:
|
90
98
|
- lib
|
91
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
100
|
requirements:
|
94
|
-
- -
|
101
|
+
- - ">="
|
95
102
|
- !ruby/object:Gem::Version
|
96
103
|
version: '0'
|
97
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
105
|
requirements:
|
100
|
-
- -
|
106
|
+
- - ">="
|
101
107
|
- !ruby/object:Gem::Version
|
102
108
|
version: '0'
|
103
109
|
requirements: []
|
104
110
|
rubyforge_project:
|
105
|
-
rubygems_version:
|
111
|
+
rubygems_version: 2.2.2
|
106
112
|
signing_key:
|
107
|
-
specification_version:
|
113
|
+
specification_version: 4
|
108
114
|
summary: A Command Line Tool For Amazon Web Services
|
109
115
|
test_files:
|
110
116
|
- spec/base_spec.rb
|