aws_account_utils 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +50 -0
- data/.gitignore +9 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/README.md +415 -0
- data/Rakefile +1 -0
- data/aws_account_utils.gemspec +29 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/aws_account_utils.rb +200 -0
- data/lib/aws_account_utils/account_logger.rb +26 -0
- data/lib/aws_account_utils/account_registration.rb +52 -0
- data/lib/aws_account_utils/alternate_contacts.rb +42 -0
- data/lib/aws_account_utils/base.rb +26 -0
- data/lib/aws_account_utils/challenge_questions.rb +49 -0
- data/lib/aws_account_utils/consolidated_billing.rb +80 -0
- data/lib/aws_account_utils/customer_information.rb +39 -0
- data/lib/aws_account_utils/customize_url.rb +36 -0
- data/lib/aws_account_utils/email_preferences.rb +30 -0
- data/lib/aws_account_utils/enterprise_support.rb +64 -0
- data/lib/aws_account_utils/iam_billing.rb +32 -0
- data/lib/aws_account_utils/login.rb +30 -0
- data/lib/aws_account_utils/logout.rb +29 -0
- data/lib/aws_account_utils/password.rb +53 -0
- data/lib/aws_account_utils/root_access_keys.rb +86 -0
- data/lib/aws_account_utils/settings.rb +10 -0
- data/lib/aws_account_utils/version.rb +3 -0
- data/lib/aws_account_utils/watir_browser.rb +49 -0
- metadata +228 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'aws_account_utils/base'
|
2
|
+
require 'watir-webdriver'
|
3
|
+
|
4
|
+
module AwsAccountUtils
|
5
|
+
class WatirBrowser
|
6
|
+
attr_reader :logger
|
7
|
+
|
8
|
+
def initialize(logger)
|
9
|
+
@logger = logger
|
10
|
+
end
|
11
|
+
|
12
|
+
def create
|
13
|
+
logger.debug "Launching new browser."
|
14
|
+
Watir::Browser.new(:firefox, :profile => set_firefox_profile)
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
def set_firefox_profile
|
19
|
+
profile = Selenium::WebDriver::Firefox::Profile.new
|
20
|
+
|
21
|
+
if proxy
|
22
|
+
proxy_settings.each do |k,v|
|
23
|
+
profile["network.proxy.#{k}"] = v
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
profile['browser.privatebrowsing.dont_prompt_on_enter'] = true
|
28
|
+
profile['browser.privatebrowsing.autostart'] = true
|
29
|
+
profile.native_events = false
|
30
|
+
profile
|
31
|
+
end
|
32
|
+
|
33
|
+
def proxy_settings
|
34
|
+
{
|
35
|
+
'http' => proxy,
|
36
|
+
'http_port' => 80,
|
37
|
+
'ssl' => proxy,
|
38
|
+
'ssl_port' => 80,
|
39
|
+
'no_proxies_on' => '127.0.0.1',
|
40
|
+
'type' => 1
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
def proxy
|
45
|
+
@proxy ||= ENV['HTTP_PROXY']
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
metadata
ADDED
@@ -0,0 +1,228 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws_account_utils
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- keviny22
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: webmock
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.21'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 1.21.0
|
37
|
+
type: :development
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.21'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.21.0
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: guard-rspec
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '4.3'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 4.3.1
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '4.3'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 4.3.1
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: simplecov
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0.8'
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.8.2
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.8'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 0.8.2
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: fakefs
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0.6'
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.6.7
|
97
|
+
type: :development
|
98
|
+
prerelease: false
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.6'
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 0.6.7
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
name: rake
|
109
|
+
requirement: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - "~>"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: 10.3.2
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '10.0'
|
117
|
+
type: :runtime
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 10.3.2
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '10.0'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: watir-webdriver
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0.8'
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: 0.8.0
|
137
|
+
type: :runtime
|
138
|
+
prerelease: false
|
139
|
+
version_requirements: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - "~>"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0.8'
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: 0.8.0
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: random-word
|
149
|
+
requirement: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '1.3'
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: 1.3.0
|
157
|
+
type: :runtime
|
158
|
+
prerelease: false
|
159
|
+
version_requirements: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - "~>"
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '1.3'
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 1.3.0
|
167
|
+
description: A set of helper methods that are webdriven.
|
168
|
+
email:
|
169
|
+
- kevin_young@intuit.com
|
170
|
+
executables: []
|
171
|
+
extensions: []
|
172
|
+
extra_rdoc_files: []
|
173
|
+
files:
|
174
|
+
- ".codeclimate.yml"
|
175
|
+
- ".gitignore"
|
176
|
+
- ".ruby-gemset"
|
177
|
+
- ".ruby-version"
|
178
|
+
- CODE_OF_CONDUCT.md
|
179
|
+
- Gemfile
|
180
|
+
- README.md
|
181
|
+
- Rakefile
|
182
|
+
- aws_account_utils.gemspec
|
183
|
+
- bin/console
|
184
|
+
- bin/setup
|
185
|
+
- lib/aws_account_utils.rb
|
186
|
+
- lib/aws_account_utils/account_logger.rb
|
187
|
+
- lib/aws_account_utils/account_registration.rb
|
188
|
+
- lib/aws_account_utils/alternate_contacts.rb
|
189
|
+
- lib/aws_account_utils/base.rb
|
190
|
+
- lib/aws_account_utils/challenge_questions.rb
|
191
|
+
- lib/aws_account_utils/consolidated_billing.rb
|
192
|
+
- lib/aws_account_utils/customer_information.rb
|
193
|
+
- lib/aws_account_utils/customize_url.rb
|
194
|
+
- lib/aws_account_utils/email_preferences.rb
|
195
|
+
- lib/aws_account_utils/enterprise_support.rb
|
196
|
+
- lib/aws_account_utils/iam_billing.rb
|
197
|
+
- lib/aws_account_utils/login.rb
|
198
|
+
- lib/aws_account_utils/logout.rb
|
199
|
+
- lib/aws_account_utils/password.rb
|
200
|
+
- lib/aws_account_utils/root_access_keys.rb
|
201
|
+
- lib/aws_account_utils/settings.rb
|
202
|
+
- lib/aws_account_utils/version.rb
|
203
|
+
- lib/aws_account_utils/watir_browser.rb
|
204
|
+
homepage: https://github.com/intuit/aws_account_utils
|
205
|
+
licenses: []
|
206
|
+
metadata: {}
|
207
|
+
post_install_message:
|
208
|
+
rdoc_options: []
|
209
|
+
require_paths:
|
210
|
+
- lib
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
requirements: []
|
222
|
+
rubyforge_project:
|
223
|
+
rubygems_version: 2.2.2
|
224
|
+
signing_key:
|
225
|
+
specification_version: 4
|
226
|
+
summary: A set of helper methods for configuring aspects of AWS that do not have an
|
227
|
+
API.
|
228
|
+
test_files: []
|