acquia_toolbelt 2.0.1 → 2.1.0

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 (115) hide show
  1. metadata +62 -130
  2. data/.gitignore +0 -4
  3. data/.ruby-version +0 -1
  4. data/.travis.yml +0 -7
  5. data/Gemfile +0 -3
  6. data/Gemfile.lock +0 -35
  7. data/LICENSE +0 -19
  8. data/README.md +0 -147
  9. data/Rakefile +0 -1
  10. data/acquia_toolbelt.gemspec +0 -32
  11. data/bin/acquia +0 -9
  12. data/lib/acquia_toolbelt.rb +0 -4
  13. data/lib/acquia_toolbelt/cli.rb +0 -103
  14. data/lib/acquia_toolbelt/cli/api.rb +0 -106
  15. data/lib/acquia_toolbelt/cli/auth.rb +0 -31
  16. data/lib/acquia_toolbelt/cli/database.rb +0 -208
  17. data/lib/acquia_toolbelt/cli/deploy.rb +0 -30
  18. data/lib/acquia_toolbelt/cli/domain.rb +0 -166
  19. data/lib/acquia_toolbelt/cli/environment.rb +0 -38
  20. data/lib/acquia_toolbelt/cli/file.rb +0 -23
  21. data/lib/acquia_toolbelt/cli/server.rb +0 -61
  22. data/lib/acquia_toolbelt/cli/site.rb +0 -28
  23. data/lib/acquia_toolbelt/cli/ssh.rb +0 -69
  24. data/lib/acquia_toolbelt/cli/svn.rb +0 -65
  25. data/lib/acquia_toolbelt/cli/task.rb +0 -71
  26. data/lib/acquia_toolbelt/cli/ui.rb +0 -29
  27. data/lib/acquia_toolbelt/error.rb +0 -4
  28. data/lib/acquia_toolbelt/thor.rb +0 -95
  29. data/lib/acquia_toolbelt/version.rb +0 -3
  30. data/lib/vendor/thor/CHANGELOG.md +0 -139
  31. data/lib/vendor/thor/Gemfile +0 -20
  32. data/lib/vendor/thor/LICENSE.md +0 -20
  33. data/lib/vendor/thor/README.md +0 -35
  34. data/lib/vendor/thor/lib/thor.rb +0 -474
  35. data/lib/vendor/thor/lib/thor/actions.rb +0 -318
  36. data/lib/vendor/thor/lib/thor/actions/create_file.rb +0 -105
  37. data/lib/vendor/thor/lib/thor/actions/create_link.rb +0 -60
  38. data/lib/vendor/thor/lib/thor/actions/directory.rb +0 -119
  39. data/lib/vendor/thor/lib/thor/actions/empty_directory.rb +0 -137
  40. data/lib/vendor/thor/lib/thor/actions/file_manipulation.rb +0 -317
  41. data/lib/vendor/thor/lib/thor/actions/inject_into_file.rb +0 -109
  42. data/lib/vendor/thor/lib/thor/base.rb +0 -654
  43. data/lib/vendor/thor/lib/thor/command.rb +0 -136
  44. data/lib/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +0 -80
  45. data/lib/vendor/thor/lib/thor/core_ext/io_binary_read.rb +0 -12
  46. data/lib/vendor/thor/lib/thor/core_ext/ordered_hash.rb +0 -100
  47. data/lib/vendor/thor/lib/thor/error.rb +0 -32
  48. data/lib/vendor/thor/lib/thor/group.rb +0 -282
  49. data/lib/vendor/thor/lib/thor/invocation.rb +0 -172
  50. data/lib/vendor/thor/lib/thor/parser.rb +0 -4
  51. data/lib/vendor/thor/lib/thor/parser/argument.rb +0 -74
  52. data/lib/vendor/thor/lib/thor/parser/arguments.rb +0 -171
  53. data/lib/vendor/thor/lib/thor/parser/option.rb +0 -121
  54. data/lib/vendor/thor/lib/thor/parser/options.rb +0 -218
  55. data/lib/vendor/thor/lib/thor/rake_compat.rb +0 -72
  56. data/lib/vendor/thor/lib/thor/runner.rb +0 -322
  57. data/lib/vendor/thor/lib/thor/shell.rb +0 -88
  58. data/lib/vendor/thor/lib/thor/shell/basic.rb +0 -422
  59. data/lib/vendor/thor/lib/thor/shell/color.rb +0 -148
  60. data/lib/vendor/thor/lib/thor/shell/html.rb +0 -127
  61. data/lib/vendor/thor/lib/thor/util.rb +0 -270
  62. data/lib/vendor/thor/lib/thor/version.rb +0 -3
  63. data/lib/vendor/thor/spec/actions/create_file_spec.rb +0 -170
  64. data/lib/vendor/thor/spec/actions/create_link_spec.rb +0 -95
  65. data/lib/vendor/thor/spec/actions/directory_spec.rb +0 -169
  66. data/lib/vendor/thor/spec/actions/empty_directory_spec.rb +0 -129
  67. data/lib/vendor/thor/spec/actions/file_manipulation_spec.rb +0 -382
  68. data/lib/vendor/thor/spec/actions/inject_into_file_spec.rb +0 -135
  69. data/lib/vendor/thor/spec/actions_spec.rb +0 -331
  70. data/lib/vendor/thor/spec/base_spec.rb +0 -291
  71. data/lib/vendor/thor/spec/command_spec.rb +0 -80
  72. data/lib/vendor/thor/spec/core_ext/hash_with_indifferent_access_spec.rb +0 -48
  73. data/lib/vendor/thor/spec/core_ext/ordered_hash_spec.rb +0 -115
  74. data/lib/vendor/thor/spec/exit_condition_spec.rb +0 -19
  75. data/lib/vendor/thor/spec/fixtures/application.rb +0 -2
  76. data/lib/vendor/thor/spec/fixtures/app{1}/README +0 -3
  77. data/lib/vendor/thor/spec/fixtures/bundle/execute.rb +0 -6
  78. data/lib/vendor/thor/spec/fixtures/bundle/main.thor +0 -1
  79. data/lib/vendor/thor/spec/fixtures/command.thor +0 -10
  80. data/lib/vendor/thor/spec/fixtures/doc/%file_name%.rb.tt +0 -1
  81. data/lib/vendor/thor/spec/fixtures/doc/COMMENTER +0 -11
  82. data/lib/vendor/thor/spec/fixtures/doc/README +0 -3
  83. data/lib/vendor/thor/spec/fixtures/doc/block_helper.rb +0 -3
  84. data/lib/vendor/thor/spec/fixtures/doc/components/.empty_directory +0 -0
  85. data/lib/vendor/thor/spec/fixtures/doc/config.rb +0 -1
  86. data/lib/vendor/thor/spec/fixtures/doc/config.yaml.tt +0 -1
  87. data/lib/vendor/thor/spec/fixtures/doc/excluding/%file_name%.rb.tt +0 -1
  88. data/lib/vendor/thor/spec/fixtures/enum.thor +0 -10
  89. data/lib/vendor/thor/spec/fixtures/group.thor +0 -128
  90. data/lib/vendor/thor/spec/fixtures/invoke.thor +0 -118
  91. data/lib/vendor/thor/spec/fixtures/path with spaces b/data/lib/vendor/thor/spec/fixtures/path with → spaces +0 -0
  92. data/lib/vendor/thor/spec/fixtures/preserve/script.sh +0 -3
  93. data/lib/vendor/thor/spec/fixtures/script.thor +0 -220
  94. data/lib/vendor/thor/spec/fixtures/subcommand.thor +0 -17
  95. data/lib/vendor/thor/spec/group_spec.rb +0 -222
  96. data/lib/vendor/thor/spec/helper.rb +0 -67
  97. data/lib/vendor/thor/spec/invocation_spec.rb +0 -108
  98. data/lib/vendor/thor/spec/parser/argument_spec.rb +0 -53
  99. data/lib/vendor/thor/spec/parser/arguments_spec.rb +0 -66
  100. data/lib/vendor/thor/spec/parser/option_spec.rb +0 -202
  101. data/lib/vendor/thor/spec/parser/options_spec.rb +0 -400
  102. data/lib/vendor/thor/spec/rake_compat_spec.rb +0 -72
  103. data/lib/vendor/thor/spec/register_spec.rb +0 -197
  104. data/lib/vendor/thor/spec/runner_spec.rb +0 -241
  105. data/lib/vendor/thor/spec/shell/basic_spec.rb +0 -330
  106. data/lib/vendor/thor/spec/shell/color_spec.rb +0 -95
  107. data/lib/vendor/thor/spec/shell/html_spec.rb +0 -31
  108. data/lib/vendor/thor/spec/shell_spec.rb +0 -47
  109. data/lib/vendor/thor/spec/subcommand_spec.rb +0 -30
  110. data/lib/vendor/thor/spec/thor_spec.rb +0 -499
  111. data/lib/vendor/thor/spec/util_spec.rb +0 -196
  112. data/lib/vendor/thor/thor.gemspec +0 -24
  113. data/script/setup_build +0 -6
  114. data/spec/auth_spec.rb +0 -8
  115. data/spec_helper.rb +0 -6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acquia_toolbelt
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-05 00:00:00.000000000 Z
12
+ date: 2013-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -123,6 +123,22 @@ dependencies:
123
123
  - - '='
124
124
  - !ruby/object:Gem::Version
125
125
  version: 1.6.0
126
+ - !ruby/object:Gem::Dependency
127
+ name: multi_json
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - '='
132
+ - !ruby/object:Gem::Version
133
+ version: 1.8.2
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - '='
140
+ - !ruby/object:Gem::Version
141
+ version: 1.8.2
126
142
  - !ruby/object:Gem::Dependency
127
143
  name: bundler
128
144
  requirement: !ruby/object:Gem::Requirement
@@ -144,155 +160,72 @@ dependencies:
144
160
  requirement: !ruby/object:Gem::Requirement
145
161
  none: false
146
162
  requirements:
147
- - - ! '>='
163
+ - - '='
148
164
  - !ruby/object:Gem::Version
149
- version: '0'
165
+ version: 10.1.0
150
166
  type: :development
151
167
  prerelease: false
152
168
  version_requirements: !ruby/object:Gem::Requirement
153
169
  none: false
154
170
  requirements:
155
- - - ! '>='
171
+ - - '='
156
172
  - !ruby/object:Gem::Version
157
- version: '0'
173
+ version: 10.1.0
158
174
  - !ruby/object:Gem::Dependency
159
- name: minitest
175
+ name: rspec
160
176
  requirement: !ruby/object:Gem::Requirement
161
177
  none: false
162
178
  requirements:
163
- - - ! '>='
179
+ - - '='
164
180
  - !ruby/object:Gem::Version
165
- version: '0'
181
+ version: 2.14.1
166
182
  type: :development
167
183
  prerelease: false
168
184
  version_requirements: !ruby/object:Gem::Requirement
169
185
  none: false
170
186
  requirements:
171
- - - ! '>='
187
+ - - '='
188
+ - !ruby/object:Gem::Version
189
+ version: 2.14.1
190
+ - !ruby/object:Gem::Dependency
191
+ name: vcr
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - '='
196
+ - !ruby/object:Gem::Version
197
+ version: 2.7.0
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - '='
204
+ - !ruby/object:Gem::Version
205
+ version: 2.7.0
206
+ - !ruby/object:Gem::Dependency
207
+ name: webmock
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - '='
212
+ - !ruby/object:Gem::Version
213
+ version: 1.15.2
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - '='
172
220
  - !ruby/object:Gem::Version
173
- version: '0'
221
+ version: 1.15.2
174
222
  description: A CLI tool for interacting with Acquia's hosting services.
175
223
  email:
176
224
  - jacob.bednarz@gmail.com
177
- executables:
178
- - acquia
225
+ executables: []
179
226
  extensions: []
180
227
  extra_rdoc_files: []
181
- files:
182
- - .gitignore
183
- - .ruby-version
184
- - .travis.yml
185
- - Gemfile
186
- - Gemfile.lock
187
- - LICENSE
188
- - README.md
189
- - Rakefile
190
- - acquia_toolbelt.gemspec
191
- - bin/acquia
192
- - lib/acquia_toolbelt.rb
193
- - lib/acquia_toolbelt/cli.rb
194
- - lib/acquia_toolbelt/cli/api.rb
195
- - lib/acquia_toolbelt/cli/auth.rb
196
- - lib/acquia_toolbelt/cli/database.rb
197
- - lib/acquia_toolbelt/cli/deploy.rb
198
- - lib/acquia_toolbelt/cli/domain.rb
199
- - lib/acquia_toolbelt/cli/environment.rb
200
- - lib/acquia_toolbelt/cli/file.rb
201
- - lib/acquia_toolbelt/cli/server.rb
202
- - lib/acquia_toolbelt/cli/site.rb
203
- - lib/acquia_toolbelt/cli/ssh.rb
204
- - lib/acquia_toolbelt/cli/svn.rb
205
- - lib/acquia_toolbelt/cli/task.rb
206
- - lib/acquia_toolbelt/cli/ui.rb
207
- - lib/acquia_toolbelt/error.rb
208
- - lib/acquia_toolbelt/thor.rb
209
- - lib/acquia_toolbelt/version.rb
210
- - lib/vendor/thor/CHANGELOG.md
211
- - lib/vendor/thor/Gemfile
212
- - lib/vendor/thor/LICENSE.md
213
- - lib/vendor/thor/README.md
214
- - lib/vendor/thor/lib/thor.rb
215
- - lib/vendor/thor/lib/thor/actions.rb
216
- - lib/vendor/thor/lib/thor/actions/create_file.rb
217
- - lib/vendor/thor/lib/thor/actions/create_link.rb
218
- - lib/vendor/thor/lib/thor/actions/directory.rb
219
- - lib/vendor/thor/lib/thor/actions/empty_directory.rb
220
- - lib/vendor/thor/lib/thor/actions/file_manipulation.rb
221
- - lib/vendor/thor/lib/thor/actions/inject_into_file.rb
222
- - lib/vendor/thor/lib/thor/base.rb
223
- - lib/vendor/thor/lib/thor/command.rb
224
- - lib/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb
225
- - lib/vendor/thor/lib/thor/core_ext/io_binary_read.rb
226
- - lib/vendor/thor/lib/thor/core_ext/ordered_hash.rb
227
- - lib/vendor/thor/lib/thor/error.rb
228
- - lib/vendor/thor/lib/thor/group.rb
229
- - lib/vendor/thor/lib/thor/invocation.rb
230
- - lib/vendor/thor/lib/thor/parser.rb
231
- - lib/vendor/thor/lib/thor/parser/argument.rb
232
- - lib/vendor/thor/lib/thor/parser/arguments.rb
233
- - lib/vendor/thor/lib/thor/parser/option.rb
234
- - lib/vendor/thor/lib/thor/parser/options.rb
235
- - lib/vendor/thor/lib/thor/rake_compat.rb
236
- - lib/vendor/thor/lib/thor/runner.rb
237
- - lib/vendor/thor/lib/thor/shell.rb
238
- - lib/vendor/thor/lib/thor/shell/basic.rb
239
- - lib/vendor/thor/lib/thor/shell/color.rb
240
- - lib/vendor/thor/lib/thor/shell/html.rb
241
- - lib/vendor/thor/lib/thor/util.rb
242
- - lib/vendor/thor/lib/thor/version.rb
243
- - lib/vendor/thor/spec/actions/create_file_spec.rb
244
- - lib/vendor/thor/spec/actions/create_link_spec.rb
245
- - lib/vendor/thor/spec/actions/directory_spec.rb
246
- - lib/vendor/thor/spec/actions/empty_directory_spec.rb
247
- - lib/vendor/thor/spec/actions/file_manipulation_spec.rb
248
- - lib/vendor/thor/spec/actions/inject_into_file_spec.rb
249
- - lib/vendor/thor/spec/actions_spec.rb
250
- - lib/vendor/thor/spec/base_spec.rb
251
- - lib/vendor/thor/spec/command_spec.rb
252
- - lib/vendor/thor/spec/core_ext/hash_with_indifferent_access_spec.rb
253
- - lib/vendor/thor/spec/core_ext/ordered_hash_spec.rb
254
- - lib/vendor/thor/spec/exit_condition_spec.rb
255
- - lib/vendor/thor/spec/fixtures/application.rb
256
- - lib/vendor/thor/spec/fixtures/app{1}/README
257
- - lib/vendor/thor/spec/fixtures/bundle/execute.rb
258
- - lib/vendor/thor/spec/fixtures/bundle/main.thor
259
- - lib/vendor/thor/spec/fixtures/command.thor
260
- - lib/vendor/thor/spec/fixtures/doc/%file_name%.rb.tt
261
- - lib/vendor/thor/spec/fixtures/doc/COMMENTER
262
- - lib/vendor/thor/spec/fixtures/doc/README
263
- - lib/vendor/thor/spec/fixtures/doc/block_helper.rb
264
- - lib/vendor/thor/spec/fixtures/doc/components/.empty_directory
265
- - lib/vendor/thor/spec/fixtures/doc/config.rb
266
- - lib/vendor/thor/spec/fixtures/doc/config.yaml.tt
267
- - lib/vendor/thor/spec/fixtures/doc/excluding/%file_name%.rb.tt
268
- - lib/vendor/thor/spec/fixtures/enum.thor
269
- - lib/vendor/thor/spec/fixtures/group.thor
270
- - lib/vendor/thor/spec/fixtures/invoke.thor
271
- - lib/vendor/thor/spec/fixtures/path with spaces
272
- - lib/vendor/thor/spec/fixtures/preserve/script.sh
273
- - lib/vendor/thor/spec/fixtures/script.thor
274
- - lib/vendor/thor/spec/fixtures/subcommand.thor
275
- - lib/vendor/thor/spec/group_spec.rb
276
- - lib/vendor/thor/spec/helper.rb
277
- - lib/vendor/thor/spec/invocation_spec.rb
278
- - lib/vendor/thor/spec/parser/argument_spec.rb
279
- - lib/vendor/thor/spec/parser/arguments_spec.rb
280
- - lib/vendor/thor/spec/parser/option_spec.rb
281
- - lib/vendor/thor/spec/parser/options_spec.rb
282
- - lib/vendor/thor/spec/rake_compat_spec.rb
283
- - lib/vendor/thor/spec/register_spec.rb
284
- - lib/vendor/thor/spec/runner_spec.rb
285
- - lib/vendor/thor/spec/shell/basic_spec.rb
286
- - lib/vendor/thor/spec/shell/color_spec.rb
287
- - lib/vendor/thor/spec/shell/html_spec.rb
288
- - lib/vendor/thor/spec/shell_spec.rb
289
- - lib/vendor/thor/spec/subcommand_spec.rb
290
- - lib/vendor/thor/spec/thor_spec.rb
291
- - lib/vendor/thor/spec/util_spec.rb
292
- - lib/vendor/thor/thor.gemspec
293
- - script/setup_build
294
- - spec/auth_spec.rb
295
- - spec_helper.rb
228
+ files: []
296
229
  homepage: https://github.com/jacobbednarz/acquia-toolbelt
297
230
  licenses:
298
231
  - MIT
@@ -318,5 +251,4 @@ rubygems_version: 1.8.23
318
251
  signing_key:
319
252
  specification_version: 3
320
253
  summary: ''
321
- test_files:
322
- - spec/auth_spec.rb
254
+ test_files: []
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- .DS_Store
2
- *.tmp
3
- *.swp
4
- *.gem
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 1.9.3
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - "1.9.2"
4
- - "1.9.3"
5
- - "2.0.0"
6
- script: "bundle exec ruby ./spec_helper.rb"
7
- before_install: "ruby ./script/setup_build"
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
data/Gemfile.lock DELETED
@@ -1,35 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- acquia_toolbelt (2.0.1)
5
- faraday (= 0.8.8)
6
- highline (= 1.6.19)
7
- json (= 1.8.0)
8
- netrc (= 0.7.7)
9
- rainbow (= 1.1.4)
10
- sshkey (= 1.6.0)
11
- thor (= 0.18.1)
12
-
13
- GEM
14
- remote: https://rubygems.org/
15
- specs:
16
- faraday (0.8.8)
17
- multipart-post (~> 1.2.0)
18
- highline (1.6.19)
19
- json (1.8.0)
20
- minitest (5.0.8)
21
- multipart-post (1.2.0)
22
- netrc (0.7.7)
23
- rainbow (1.1.4)
24
- rake (10.1.0)
25
- sshkey (1.6.0)
26
- thor (0.18.1)
27
-
28
- PLATFORMS
29
- ruby
30
-
31
- DEPENDENCIES
32
- acquia_toolbelt!
33
- bundler (~> 1.3)
34
- minitest
35
- rake
data/LICENSE DELETED
@@ -1,19 +0,0 @@
1
- Copyright (c) 2012 Jacob Bednarz.
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the "Software"), to deal in
5
- the Software without restriction, including without limitation the rights to
6
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
- of the Software, and to permit persons to whom the Software is furnished to do
8
- so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- SOFTWARE.
data/README.md DELETED
@@ -1,147 +0,0 @@
1
- # Acquia Toolbelt [![Gem Version](https://badge.fury.io/rb/acquia_toolbelt.png)](http://badge.fury.io/rb/acquia_toolbelt) [![Build Status](https://travis-ci.org/jacobbednarz/acquia-toolbelt.png)](https://travis-ci.org/jacobbednarz/acquia-toolbelt)
2
-
3
- The Acquia Toolbelt is a CLI tool for using the Acquia Cloud API. Some of the
4
- features include getting information around your servers, subscription,
5
- databases, tasks and domains.
6
-
7
- ## Installation
8
-
9
- Installation is available (and recommended) via Ruby Gems.
10
-
11
- ```
12
- $ gem install acquia_toolbelt
13
- ```
14
-
15
- Once installed, the toolbelt is accessible via invoking `acquia` within the
16
- command line.
17
-
18
- ## Usage
19
- You can see all available commands by running `acquia help`. Additonally, more
20
- information on each command is available via `acquia [COMMAND] help`.
21
-
22
- ```
23
- $ acquia help
24
-
25
- Type 'acquia [COMMAND] help' for more details on subcommands or to show example usage.
26
-
27
- Commands:
28
- acquia auth
29
- acquia databases
30
- acquia deploy
31
- acquia domains
32
- acquia environments
33
- acquia files
34
- acquia servers
35
- acquia sites
36
- acquia ssh
37
- acquia svn
38
- acquia tasks
39
-
40
- Options:
41
- -s, [--subscription=SUBSCRIPTION] # Name of a subscription you would like to target.
42
- -e, [--environment=ENVIRONMENT] # Environment to target for commands.
43
- -v, [--verbose] # Increase the verbose output from the commands.
44
- ```
45
-
46
- #### Example commands
47
-
48
- Without parameters:
49
-
50
- ```
51
- $ acquia database:list
52
-
53
- > mydb
54
- > mydb2
55
- ```
56
-
57
- With parameters:
58
-
59
- ```
60
- $ acquia database:list -e dev -d mydb
61
-
62
- > Username: exampledb
63
- > Password: h5hKN4v2nc*1nd
64
- > Host: staging-1234
65
- > DB cluster: 1111
66
- > Instance name: mydb8717
67
- ```
68
-
69
- ## Getting started
70
-
71
- Before you can start using any commands, you need to first run
72
- `acquia auth:login`. This will write your login details to a local netrc file so
73
- that you won't be prompted for login details every time a request is made. After
74
- that, the sky is the limit!
75
-
76
- ## FAQ
77
-
78
- **Q: Is there support for proxies and corporate firewalls?**
79
-
80
- **A:** By god yes. Proxies and corporate firewalls are the bane of my existence
81
- so there was no way this toolbelt _wasn't_ going to support it. To use a proxy,
82
- all you need to do is set your HTTPS_PROXY environment variable to the required
83
- value. Example:
84
-
85
- ```bash
86
- $ export HTTPS_PROXY="http://myproxy.url.internal:1234"
87
- ```
88
-
89
- Then to check the value was correctly set:
90
-
91
- ```bash
92
- $ echo $HTTPS_PROXY
93
- $ http://myproxy.url.internal:1234
94
- ```
95
-
96
- **Q: Is there somewhere I can see all the commands with required parameters?**
97
-
98
- **A:** Yep. Check out the
99
- [commands listing](https://github.com/jacobbednarz/acquia-toolbelt/wiki/Commands)
100
- in the [wiki](https://github.com/jacobbednarz/acquia-toolbelt/wiki).
101
-
102
- ## Hacking on the Acquia Toolbelt
103
-
104
- The Acquia Toolbelt uses [VCR](https://github.com/vcr/vcr) for recording and
105
- replaying API fixtures during test runs - doing this allows the tests to stay
106
- fast and easy for anyone to run.
107
-
108
- Authenticated requests are currently using the user credentials from the netrc
109
- file on your local system. It is a good idea to have this setup first (simply
110
- by running `acquia auth:login`) as if you are recording new cassettes you will
111
- need to be able to make actual requests. Don't worry about your user credentials
112
- being stored in the fixtures as they are removed during the request and they
113
- will appear as ACQUIA_USERNAME and ACQUIA_PASSWORD in the requests
114
- respectively.
115
-
116
- Since the cassettes are periodically refreshed to match changes to the API,
117
- remember the keep the following in mind when making cassettes.
118
-
119
- * **Specs should be idempotent.** The HTTP calls made during a spec should be
120
- able to be run over and over. This means deleting a known resource prior to
121
- creating it if the name has to be unique.
122
- * **Specs should be able to be run in random order.** If a spec depends on
123
- another resource as a fixture, make sure that's created in the scope of the
124
- spec and not depend on a previous spec to create the data needed.
125
- * **Do not depend on authenticated user info.** Instead of asserting actual
126
- values in resources, try to assert the existence of a key or that a response
127
- is an Array. We're testing the client, not the API.
128
-
129
- ### Running and writing new tests
130
-
131
- The testing is mainly [MiniTest](https://github.com/seattlerb/minitest). To run
132
- the test suite, execute the following in the root of the repository:
133
-
134
- ```
135
- bundle exec ruby spec_helper.rb
136
- ```
137
-
138
- ### Supported versions
139
-
140
- This library aims to support and is [tested against](https://travis-ci.org/jacobbednarz/acquia-toolbelt) the following Ruby implementations:
141
-
142
- * Ruby 1.9.2
143
- * Ruby 1.9.3
144
- * Ruby 2.0.0
145
-
146
- If you would like support for other implementations or versions, please open an
147
- issue and it can be looked into.