byld-cli 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 277caf41280001f2587527817c56ec5744c90460adda580c7fb951f4e16e32c5
4
- data.tar.gz: 9c1c6362c89ad322259898b1e1ef6f48042bc9decb4bafd67fc5b17e2bd5eb7b
3
+ metadata.gz: 11e3cd7001024c787df96c8430466fca49f924b5ea0764d9dc992c228b06e525
4
+ data.tar.gz: 8597f984dd006c421e75ee3fe4a7b4faeabd99e289df56b97e4f2c1c28dddc6f
5
5
  SHA512:
6
- metadata.gz: b9f004be65ccd30f5deaf4e38d3d4ea3a4349cb58a1ac0ab35b58c89f52b35d280c84edc115193f54490a8ec00b5637506d402a617ece6fb54c5831f1dc7370d
7
- data.tar.gz: c14b670b116ee4f97b8cc4a47df7f36c56afaac0c49cc9ca79e14c845d073784147e7143a06e6b52dc655b3231c278d75830418777c20c54a93eeb013fa3fe73
6
+ metadata.gz: 9747f57a2c4684f5fa86afa4d3f8c890cad448448f3f56636f4ea4a54f076eb54a76da70dacfadc1d693cd19e4333a7f2ec4336016267562eb4b39f6f20d5e4a
7
+ data.tar.gz: c3340f54c8a17193c058a01c786fa0b055ef577964814cf9e0c98871d099ec03bc6195e2452884fc8644af22a154d8b191a356a83b963ef5260d55c203886be7
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'byld-cli'
6
- spec.version = '0.0.4'
6
+ spec.version = '0.0.5'
7
7
 
8
8
  spec.authors = ['the fellowhip co']
9
9
  spec.summary = 'cli for byld'
@@ -12,9 +12,9 @@ class Connect < Thor::Group
12
12
 
13
13
  def create_client
14
14
  puts "☝️ Connecting #{name}..."
15
- namespace_config = Config.load(".byld/config.yml")
15
+ project_config = Config.load(".byld/config.yml")
16
16
 
17
- success, res = Infra.generate_client(name, namespace_config['namespace']['id'])
17
+ success, res = Infra.generate_client(name, project_config['project']['namespaceId'])
18
18
  if success
19
19
  create_file ".byld/gen/#{name.underscore}.rb", res.first['content']
20
20
  puts "🔗 #{name} connected successfully!"
@@ -16,14 +16,14 @@ class Status < Thor::Group
16
16
  say set_color("gate\n", :bold)
17
17
 
18
18
  gates = res['projects']
19
- .filter { |project| project['projectType'] == 'graph' }
19
+ .select { |project| project['projectType'] == 'graph' }
20
20
  .map { |project| [project['name'], project['status'], project['url'], project['docsUrl']] }
21
21
 
22
22
  say Terminal::Table.new headings: ['name', 'status', 'url', 'docs'], rows: gates
23
23
 
24
24
  say set_color("\nblocks\n", :bold)
25
25
  blocks = res['projects']
26
- .filter { |project| project['projectType'] == 'domain' }
26
+ .select { |project| project['projectType'] == 'domain' }
27
27
  .map { |project| [project['name'], project['status']] }
28
28
 
29
29
  say Terminal::Table.new headings: ['name', 'status'], rows: blocks
@@ -3,5 +3,5 @@ source "https://rubygems.org"
3
3
  gem 'sqlite3'
4
4
 
5
5
  source "https://rubygems.pkg.github.com/the-fellowship-co/" do
6
- gem "byld-framework", "0.1.27"
6
+ gem "byld-framework", "0.1.28"
7
7
  end
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  source "https://rubygems.pkg.github.com/the-fellowship-co/" do
4
- gem "byld-framework", "0.1.27"
4
+ gem "byld-framework", "0.1.28"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: byld-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - the fellowhip co
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-28 00:00:00.000000000 Z
11
+ date: 2020-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor