cloudstrap 0.44.0.pre → 0.45.0.pre

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/cloudstrap-config +30 -0
  3. metadata +3 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5573ac1add1f5deb3c96b146b7ac2dc82faad659
4
- data.tar.gz: 191b2439c8ec9d94503d1550f8f22523033aa0de
3
+ metadata.gz: 8534d3230e3b034c623195a287602bdebad29066
4
+ data.tar.gz: de21b3e1b67611c232fee78e4a433d3da24a2f38
5
5
  SHA512:
6
- metadata.gz: 281404bfb6aa54ecaadfc1509ac2b9985797b7e2f4175b2c2b45831b300b119b007f35124005ca0c272db54e1398fc519bb03aea4aff4caf8ac677525aee7c93
7
- data.tar.gz: 9ac7ba1a971ab16c708dfec66603d5ec834aabd0e64b0f69376901900863f3900a6bc27bab9225ed9193e84eee3e96689d111ef65a90dd9fd39240af90098339
6
+ metadata.gz: 362207def80ccc8e3bc1493c062b92c4f037a0182d60366a399efae92ff32144847c5780540316f556cc9a4004e24f10f19c689cfd57509125fb80ef3de6fd88
7
+ data.tar.gz: 9fc2439b6ef14205a4179d73eea3115298d74382b4802acfad56bc0656bf0bcdfe673f1128fb588aa4b6397786669c0815b0128456207bd034eb16a76259916c
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'json'
4
+ require 'yaml'
5
+
6
+ if ENV['HACKING']
7
+ require_relative '../lib/cloudstrap'
8
+ else
9
+ require 'cloudstrap'
10
+ end
11
+
12
+ config = Cloudstrap::Config.new
13
+ configurables = config
14
+ .public_methods(false)
15
+ .reject { |m| m.to_s.start_with? '__contracts_ruby_original' }
16
+ .reject { |m| %i(Contract functype).include? m }
17
+
18
+ settings = configurables
19
+ .map { |key| [key.to_s, config.send(key)] }
20
+ .sort_by(&:first)
21
+ .to_h
22
+
23
+ case ARGV.first
24
+ when nil, /^--?y(a?ml)?$/i
25
+ puts YAML.dump settings
26
+ when /^--?j(son)?$/i
27
+ puts JSON.pretty_generate settings
28
+ else
29
+ STDERR.puts "Usage: #{File.basename $PROGRAM_NAME} (--yaml|--json)"
30
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0.pre
4
+ version: 0.45.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom
@@ -314,6 +314,7 @@ description:
314
314
  email: chris@olstrom.com
315
315
  executables:
316
316
  - cloudstrap
317
+ - cloudstrap-config
317
318
  - cloudstrap-dns
318
319
  - cloudstrap-env
319
320
  - cloudstrap-teardown
@@ -324,6 +325,7 @@ files:
324
325
  - LICENSE.txt
325
326
  - README.org
326
327
  - bin/cloudstrap
328
+ - bin/cloudstrap-config
327
329
  - bin/cloudstrap-dns
328
330
  - bin/cloudstrap-env
329
331
  - bin/cloudstrap-teardown