lono 7.4.5 → 7.4.6

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: 79dbe393ede5553a92afd2d77990c0c732dce92b02209f9bc73c69f6fd0bfe33
4
- data.tar.gz: 7db1000866845fdd0fcada396b2b98dc20d0a4eff362a83981967d58a45abe80
3
+ metadata.gz: 4c9574cc77561d997c5dc3f8aadeeaab7a708deaed94ab5a95578322e3020d12
4
+ data.tar.gz: b20a99267ec55c53aea744d6c5f42b2383e2c445b130c8df3cbaf97f56965639
5
5
  SHA512:
6
- metadata.gz: 42e372d723ee766ca855bae838799db18350791892e7feeafd3aecf14e438620be8db811c65aa43023e54c2a2072fba076c84af5faea3c3ebb0dd447766fab5c
7
- data.tar.gz: 8fb483d29241d3f4c0fce27231f2b7d02bb6f2e2261c71a332e8259117a70fbad17c307bbc7c864dc0a4897854e84c98143720def4d72d6522277f3f89097fab
6
+ metadata.gz: 8687587c45fc8d9efdf911fed49114f28b0ad8afddf81ddcbcb571578ba54ba1bbf9617fe3492bc1abbbf3487d040cf9891e9c1d0f867fdeec776ddd85f6e274
7
+ data.tar.gz: 7e0642fc5f26cfb4781e8bc9b9c64b52563ede7e4c8adfda386957d85e3ee0a0951b635afc53991ef085e1748bf106e6f30e22e94f53c26053bb206761209155
@@ -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.4.6]
7
+ - #64 lono new updates: no starter seed files, allow custom readme
8
+ - silence type check
9
+
6
10
  ## [7.4.5]
7
11
  - add DeletionPolicy to special property mover also
8
12
  - improve sets delete messaging
@@ -52,7 +52,7 @@ class Lono::Blueprint
52
52
 
53
53
  def create_project
54
54
  puts "=> Creating new blueprint called #{blueprint_name}."
55
- directory ".", "#{@cwd}/#{blueprint_name}"
55
+ directory ".", "#{@cwd}/#{blueprint_name}", directory_options
56
56
  end
57
57
 
58
58
  def create_app_folder
@@ -72,22 +72,16 @@ class Lono::Blueprint
72
72
  empty_directory "#{@cwd}/#{blueprint_name}/app/templates"
73
73
  end
74
74
 
75
- def create_starter_configs
76
- return unless @demo
77
- return if @options[:import]
78
-
79
- if options[:from_new] # lono new command
80
- directory "../blueprint_configs", options[:project_name]
81
- else # lono blueprint new command
82
- directory "../blueprint_configs", "."
83
- end
84
- end
85
-
86
75
  def create_license
87
76
  return unless ENV['LONO_LICENSE_FILE']
88
77
  copy_file ENV['LONO_LICENSE_FILE'], "#{@cwd}/#{blueprint_name}/LICENSE.txt"
89
78
  end
90
79
 
80
+ def create_readme
81
+ return unless ENV['LONO_README_FILE']
82
+ template ENV['LONO_README_FILE'], "#{@cwd}/#{blueprint_name}/README.md"
83
+ end
84
+
91
85
  # After this commands are executed with the newly created project
92
86
  def set_destination_root
93
87
  destination_root = "#{@cwd}/#{blueprint_name}"
@@ -120,5 +114,14 @@ class Lono::Blueprint
120
114
  def reset_current_dir
121
115
  FileUtils.cd(@old_dir)
122
116
  end
117
+
118
+ private
119
+ def directory_options
120
+ if ENV['LONO_README_FILE']
121
+ {exclude_pattern: /README/}
122
+ else
123
+ {}
124
+ end
125
+ end
123
126
  end
124
127
  end
@@ -90,14 +90,14 @@ module Lono::Inspector
90
90
  path = "/tmp/cloudformation-depends-on-#{random}"
91
91
  save path, "png"
92
92
  # Check if open command exists and use it to open the image.
93
- system "open #{path}.png" if system("type open > /dev/null")
93
+ system "open #{path}.png" if system("type open > /dev/null 2>&1")
94
94
  end
95
95
  end
96
96
 
97
97
  # Check if Graphiz is installed and prints a user friendly message if it is not installed.
98
98
  # Provide instructions if on macosx.
99
99
  def check_graphviz_installed
100
- installed = system("type dot > /dev/null") # dot is a command that is part of the graphviz package
100
+ installed = system("type dot > /dev/null 2>&1") # dot is a command that is part of the graphviz package
101
101
  unless installed
102
102
  puts "It appears that the Graphviz is not installed. Please install it to generate the graph."
103
103
  if RUBY_PLATFORM =~ /darwin/
@@ -12,7 +12,7 @@ class Lono::Sequence < Thor::Group
12
12
 
13
13
  private
14
14
  def git_installed?
15
- system("type git > /dev/null")
15
+ system("type git > /dev/null 2>&1")
16
16
  end
17
17
 
18
18
  def run_git?
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "7.4.5"
2
+ VERSION = "7.4.6"
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.4.5
4
+ version: 7.4.6
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-03-30 00:00:00.000000000 Z
11
+ date: 2020-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -730,10 +730,6 @@ files:
730
730
  - lib/templates/blueprint/README.md.tt
731
731
  - lib/templates/blueprint/Rakefile.tt
732
732
  - lib/templates/blueprint/seed/configs.rb
733
- - lib/templates/blueprint_configs/configs/%blueprint_name%/params/development.txt
734
- - lib/templates/blueprint_configs/configs/%blueprint_name%/params/production.txt
735
- - lib/templates/blueprint_configs/configs/%blueprint_name%/variables/development.rb
736
- - lib/templates/blueprint_configs/configs/%blueprint_name%/variables/production.rb
737
733
  - lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
738
734
  - lib/templates/blueprint_types/dsl/app/user_data/bootstrap.sh
739
735
  - lib/templates/blueprint_types/erb/app/definitions/base.rb.tt
@@ -1,2 +0,0 @@
1
- # Starter Example
2
- # InstanceType=t3.micro
@@ -1,2 +0,0 @@
1
- # Starter Example
2
- # InstanceType=t3.micro
@@ -1,2 +0,0 @@
1
- # Starter Example
2
- # @variable = "value"
@@ -1,2 +0,0 @@
1
- # Starter Example
2
- # @variable = "value"