pangea 0.0.11 → 0.0.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97063bd75d0eb81ac4ebbd8841e2ff685ca2726a4729093aedf241052c33a181
4
- data.tar.gz: e5f67f6097a3d14476a77adaf734751d6aa2cb1a623c834d04f9da06d33cfd0a
3
+ metadata.gz: 684ecb24ce055428b4bbfbfaeac6c5b2b65eb21a079e8ca8b6777cd569e6d742
4
+ data.tar.gz: df884786973df927acb56ef8e6ed7e18a46746e5a276c280117b9b5c03de3ac4
5
5
  SHA512:
6
- metadata.gz: 4350f909a75efc39e6adbc73820dee348530dc10e70ec4e3f4ec7d85a04c24a675646a04ba4164270565ceec3773b10a31724bbf0c86bf9c99a41c6a91809f9d
7
- data.tar.gz: 171fffd195148a58ab7318341a1fcba47a1b3d7498b1b86ac74b2528eb5afc99f7c33b8f844dff24d6db69aa39c7d5475bd6331be34f688646860a9fb8486b13
6
+ metadata.gz: 16253f6e954e6d7a2f40afc53bc23229c9ba25a84b656ad50bf8a18ca75280f0a5e012f6a44c81e972e4f57d06796e9247d09ce23be4b608ad7332ff8ef2e097
7
+ data.tar.gz: 529b6fdd469d29238b1f91121e01ca71980db78d03a8db226d1e84a31e5ee08f1b639322166185cac23ba9ef1dca617d91a8f75d0d36b489c5faf5b2cf05559d
@@ -22,7 +22,7 @@ module Config
22
22
 
23
23
  # configuration files to look for
24
24
  EXTENSIONS.each do |ext|
25
- paths[ext] = [] unless p[ext]
25
+ paths[ext] = [] unless paths[ext]
26
26
 
27
27
  ###############################
28
28
  # system level configuration
@@ -69,9 +69,9 @@ module Config
69
69
  # only return existing files
70
70
  res = []
71
71
  EXTENSIONS.each do |ext|
72
- files = p[ext]
72
+ files = paths[ext]
73
73
  files.each do |file|
74
- res << file if File.exist?(file)
74
+ res << file if File.exist?(file.to_s)
75
75
  end
76
76
  end
77
77
 
@@ -1,6 +1,7 @@
1
1
  require %(pangea/cli/subcommands/pangea)
2
2
  require %(pangea/synthesizer/config)
3
3
  require %(pangea/cli/config)
4
+ require %(json)
4
5
 
5
6
  class ConfigCommand < PangeaCommand
6
7
  usage do
@@ -27,13 +28,10 @@ class ConfigCommand < PangeaCommand
27
28
  end
28
29
 
29
30
  def run(argv)
30
- puts argv
31
- puts params
32
- # case params[:subcommand].to_s
33
- # when %(show)
34
- # config = Config.resolve_configurations
35
- # puts config
36
- # end
37
-
31
+ case argv[1].to_s
32
+ when %(show)
33
+ config = Config.resolve_configurations
34
+ puts JSON.pretty_generate(config)
35
+ end
38
36
  end
39
37
  end
@@ -1,3 +1,3 @@
1
1
  module Pangea
2
- VERSION = %(0.0.11).freeze
2
+ VERSION = %(0.0.13).freeze
3
3
  end
data/pangea.rb ADDED
@@ -0,0 +1,39 @@
1
+ namespace :nexus, :atavan do
2
+ long :atavan
3
+ short :at
4
+
5
+ state_config({
6
+ terraform: {
7
+ s3: {
8
+ bucket: %(atavan-terraform-state),
9
+ key: %(atavan/terraform.tfstate),
10
+ region: %(us-west-2),
11
+ dynamodb_table: %(atavan-terraform-lock),
12
+ encrypt: true
13
+ }
14
+ }
15
+ })
16
+
17
+ # environments(
18
+ # {
19
+ # je: {
20
+ # long: :jedha,
21
+ # short: :je
22
+ # }
23
+ # }
24
+ # )
25
+
26
+ # terraform do
27
+ # backend(
28
+ # {
29
+ # s3: {
30
+ # bucket: %(atavan-terraform-state),
31
+ # key: %(atavan/terraform.tfstate),
32
+ # region: %(us-west-2),
33
+ # dynamodb_table: %(atavan-terraform-lock),
34
+ # encrypt: true
35
+ # }
36
+ # }
37
+ # )
38
+ # end
39
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pangea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - drzthslnt@gmail.com
@@ -286,6 +286,7 @@ files:
286
286
  - lib/pangea/synthesizer/config.rb
287
287
  - lib/pangea/version.rb
288
288
  - pangea.gemspec
289
+ - pangea.rb
289
290
  - spec/cli/config_spec.rb
290
291
  - spec/synthesizer/config_spec.rb
291
292
  homepage: https://github.com/drzln/pangea