lono 7.0.1 → 7.0.2

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: 803899cde08425b118361567375d1dac116df56d8ed20266e7a28ffe1ce1bfdd
4
- data.tar.gz: ca65b7ea9900e8485a27ef2be2a9918266f59240a7c47f294f38420c7c40b92c
3
+ metadata.gz: aa4a710d7a1bdad0c469e7861025f6226498bc930a57af098eac5bc13c5999ef
4
+ data.tar.gz: e2ef71b7951a0e403f2082f194be1e8a05a4b1c3606a69413582e44440153fc9
5
5
  SHA512:
6
- metadata.gz: '0999c97be50ec998e3ee6f68dd42de2e0b5f09dc7d249aaae1b616699eee02bf999ed0032b0cfe836a391f0c26faa703e53a6e0f0358c2ec0205b617f0e0fc23'
7
- data.tar.gz: d7649c565fba4be8974fdaac90055083fee8a102691b58a7fefdfe827bc6675ee481e6d5724bc1581e7e8d3c016c1bbdae80d6d809d8a2edc0925f2862a9a682
6
+ metadata.gz: 82447d85788089f54f036c033fe5a6022cdc667b6dadce1c4d47e14774147cf2411c57c71fd65584a3e040ead1fbdef8f843bbb7944abd4544214fe83578b79a
7
+ data.tar.gz: 6face157c667dfe12bd4c858c215f9d4f316933704326ad4d443965ac53ac363f28f5959e2882e4fe8aa135fa9dc6b91c557daa85756044e207c4dadac842887
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [7.0.2]
7
+ - fix build and improve docs
8
+ - improve reg check message
9
+
6
10
  ## [7.0.1]
7
11
  - #37 allow Conditional to work with no camelized keys
8
12
  - #38 prevent YAML.dump from emitting aliases
@@ -0,0 +1,11 @@
1
+ ## Example
2
+
3
+ $ lono pro blueprints
4
+ +-------------+------------------------------------------------+-----------------------------------------+
5
+ | Name | Docs | Description |
6
+ +-------------+------------------------------------------------+-----------------------------------------+
7
+ | elasticache | https://github.com/boltopspro-docs/elasticache | Amazon Elasticache Memcached and Red... |
8
+ | elb | https://github.com/boltopspro-docs/elb | ELB Blueprint: Application or Networ... |
9
+ | rds | https://github.com/boltopspro-docs/rds | RDS Database Blueprint |
10
+ +-------------+------------------------------------------------+-----------------------------------------+
11
+ $
@@ -0,0 +1,11 @@
1
+ ## Example
2
+
3
+ $ lono pro configsets
4
+ +---------+--------------------------------------------+-----------------------------------------+
5
+ | Name | Docs | Description |
6
+ +---------+--------------------------------------------+-----------------------------------------+
7
+ | jenkins | https://github.com/boltopspro-docs/jenkins | Installs and Runs Jenkins |
8
+ | ruby | https://github.com/boltopspro-docs/ruby | ruby configset: install ruby on amaz... |
9
+ | ssm | https://github.com/boltopspro-docs/ssm | SSM Configset: Install, Configure an... |
10
+ +---------+--------------------------------------------+-----------------------------------------+
11
+ $
@@ -1,13 +1,13 @@
1
1
  module Lono
2
2
  class Pro < Lono::Command
3
3
  desc "blueprints", "Lists available BoltOps Pro blueprints"
4
- long_desc Help.text(:blueprints)
4
+ long_desc Help.text("pro/blueprints")
5
5
  def blueprints
6
6
  Repo.new(options.merge(type: "blueprint")).run
7
7
  end
8
8
 
9
9
  desc "configsets", "Lists available BoltOps Pro configsets"
10
- long_desc Help.text(:configsets)
10
+ long_desc Help.text("pro/configsets")
11
11
  def configsets
12
12
  Repo.new(options.merge(type: "configset")).run
13
13
  end
@@ -2,6 +2,7 @@ class Lono::Pro
2
2
  class Repo < Base
3
3
  def run
4
4
  data = api.repos(@options[:type])
5
+ # data = data[7..9]
5
6
  header = ["Name", "Docs", "Description"]
6
7
  rows = data.map do |d|
7
8
  desc = truncate(d[:description])
@@ -6,11 +6,16 @@ class Lono::Registration
6
6
  info = read_registration
7
7
  unless info
8
8
  say "Lono is not registered."
9
- say "The .lono/registration.yml file does not exist."
9
+ say "The .lono/registration.yml and ~/.lono/registration.yml file does not exist."
10
+ return false
11
+ end
12
+ unless info[:content].is_a?(Hash)
13
+ say "Lono is not registered."
14
+ say "#{info[:path]} does not have the right structure"
10
15
  return false
11
16
  end
12
17
 
13
- @resp = request_verification(info)
18
+ @resp = request_verification(info[:content])
14
19
  # A non-200 response means there was a non-200 http response. Failsafe behavior is to continue.
15
20
  # Unless called from the cli: lono registration check
16
21
  if @resp.nil?
@@ -28,7 +33,7 @@ class Lono::Registration
28
33
  end
29
34
 
30
35
  if @resp[:message]
31
- say "Lono is not correctly registered. Unable to confirm info in #{@found}"
36
+ say "Lono is not correctly registered. Unable to confirm info in #{info[:path]}"
32
37
  say @resp[:message]
33
38
  end
34
39
  false
@@ -37,18 +42,19 @@ class Lono::Registration
37
42
  def read_registration
38
43
  folders = [Lono.root, ENV['HOME']]
39
44
  files = folders.map { |f| "#{f}/.lono/registration.yml" }
40
- @found = files.find do |path|
45
+ found = files.find do |path|
41
46
  File.exist?(path)
42
47
  end
43
- return unless @found
48
+ return unless found
44
49
 
45
- content = RenderMePretty.result(@found, context: self)
50
+ content = RenderMePretty.result(found, context: self)
46
51
  if @options[:debug]
47
52
  puts "Debug mode enabled. Here's the lono registration info being used:"
53
+ puts "Using: #{found}"
48
54
  puts content
49
55
  puts
50
56
  end
51
- YAML.load(content)
57
+ {path: found, content: YAML.load(content)}
52
58
  end
53
59
  end
54
60
  end
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "7.0.1"
2
+ VERSION = "7.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lono
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.1
4
+ version: 7.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-13 00:00:00.000000000 Z
11
+ date: 2020-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -512,6 +512,8 @@ files:
512
512
  - lib/lono/help/new.md
513
513
  - lib/lono/help/param.md
514
514
  - lib/lono/help/param/generate.md
515
+ - lib/lono/help/pro/blueprints.md
516
+ - lib/lono/help/pro/configsets.md
515
517
  - lib/lono/help/script/build.md
516
518
  - lib/lono/help/script/upload.md
517
519
  - lib/lono/help/seed.md