cloudstrap 0.44.0.pre → 0.45.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cloudstrap-config +30 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8534d3230e3b034c623195a287602bdebad29066
|
4
|
+
data.tar.gz: de21b3e1b67611c232fee78e4a433d3da24a2f38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|