roro 0.3.25 → 0.3.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +0 -4
- data/lib/roro/cli/generate/generate.rb +3 -3
- data/lib/roro/cli/generate/generate_containers.rb +3 -1
- data/lib/roro/cli.rb +4 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/django.yml +3 -2
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_two/{settings.py → settings.py.tt} +0 -0
- data/lib/roro/version.rb +1 -1
- data/roro.gemspec +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fca977ddce6ff695738dee841a235d4f1fe753b10d72cf0680b97448a42a2190
|
4
|
+
data.tar.gz: 66cb772f603fed68743466db5203a34ddd87584ef3b5bb6602a7a7663a0d57d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25d819fbd99f1acf538abe9c5c981d19b3d08f392449a9da70ab283b5ea332a194517ee64fdddc20b3168e8587997e86731524b75089e7e8c939feb86ab3de0b
|
7
|
+
data.tar.gz: d8acf64e6d89fddf3f67b6c31d217ef887c5a24b509ca5aec57aaf4cd3e96097aa40e302e0eb48e716073e5ede91a89f714dcb59e78adf13a751c221ca862235
|
data/.circleci/config.yml
CHANGED
@@ -95,10 +95,6 @@ jobs:
|
|
95
95
|
- run: gem install gem-release
|
96
96
|
- run: gem bump
|
97
97
|
- run: gem release
|
98
|
-
# - run: bundle config set --local whithout development test
|
99
|
-
# - run: bundle
|
100
|
-
# - run: rake install
|
101
|
-
# - run: printf "yes" | rake release
|
102
98
|
|
103
99
|
workflows:
|
104
100
|
matrix-test-rollon:
|
@@ -7,13 +7,13 @@ module Roro
|
|
7
7
|
aliases: :e,
|
8
8
|
banner: 'one, two, three',
|
9
9
|
desc: 'The environments to generate:',
|
10
|
-
default:
|
10
|
+
default: Roro::CLI.roro_environments
|
11
11
|
|
12
12
|
method_option :containers,
|
13
13
|
type: :array,
|
14
14
|
aliases: :c,
|
15
15
|
banner: 'container_one, container_two, container_three',
|
16
|
-
default:
|
16
|
+
default: Roro::CLI.roro_default_containers,
|
17
17
|
desc: 'The containers to generate:'
|
18
18
|
|
19
19
|
method_option :mise_en_place,
|
@@ -26,7 +26,7 @@ module Roro
|
|
26
26
|
type: :array,
|
27
27
|
aliases: :k,
|
28
28
|
banner: 'one.key two.key three.key',
|
29
|
-
default:
|
29
|
+
default: Roro::CLI.roro_environments,
|
30
30
|
desc: 'The names of your keys to generate. If none supplied, Roro will infer them from your .env files:'
|
31
31
|
|
32
32
|
desc 'generate', 'Generate stuff.'
|
@@ -8,12 +8,14 @@ module Roro
|
|
8
8
|
method_options :containers => :array
|
9
9
|
def generate_containers(*containers)
|
10
10
|
mise = Roro::CLI.mise
|
11
|
-
containers = options['containers'] || containers.empty? ? %w[frontend backend database] : containers
|
11
|
+
containers = options['containers'] || (containers.empty? ? %w[frontend backend database] : containers)
|
12
12
|
# siblings = Dir.glob('./*').select do |f|
|
13
13
|
# File.directory?(f)
|
14
14
|
# !f.match?(mise)
|
15
15
|
# end
|
16
16
|
# siblings = options[:containers] ? options[:containers] : default_containers
|
17
|
+
create_file("#{mise}/scripts/.keep")
|
18
|
+
|
17
19
|
containers.each { |s| s.split('/').last }.each do |container|
|
18
20
|
create_file("#{mise}/containers/#{container}/scripts/.keep")
|
19
21
|
create_file("#{mise}/containers/#{container}/env/.keep")
|
data/lib/roro/cli.rb
CHANGED
data/lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/django.yml
CHANGED
@@ -24,11 +24,12 @@ env:
|
|
24
24
|
|
25
25
|
actions:
|
26
26
|
- directory 'stage_one', '.', @env
|
27
|
-
- run "sudo docker-compose run web django-admin startproject \"#{@env[:base][:app_name][:value]}\" . &&
|
27
|
+
- run "sudo docker-compose run web django-admin startproject \"#{@env[:base][:app_name][:value]}\" . &&
|
28
|
+
sudo chown -R $USER:$USER ."
|
28
29
|
- |
|
29
30
|
run "sudo docker-compose run web django-admin startproject \"#{@env[:base][:app_name][:value]}\" . &&
|
30
31
|
sudo chown -R $USER:$USER ."
|
31
|
-
-
|
32
|
+
- template 'stage_two/settings.py', "./#{@env[:base][:app_name][:value]}/settings.pycd cd", @env
|
32
33
|
- |
|
33
34
|
run "sudo chown -R $USER:$USER . &&
|
34
35
|
sudo docker-compose build &&
|
File without changes
|
data/lib/roro/version.rb
CHANGED
data/roro.gemspec
CHANGED
@@ -32,8 +32,6 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_dependency 'rake', '~> 13.0', '>= 13.0.1'
|
33
33
|
spec.add_dependency 'sshkit', '~> 1.21'
|
34
34
|
spec.add_dependency 'thor', '~> 1.0', '>= 1.0.1'
|
35
|
-
# spec.add_dependency 'byebug'
|
36
|
-
# spec.add_dependency 'require_all'
|
37
35
|
spec.add_development_dependency 'bundler', '~> 2.1', '>= 2.1.4'
|
38
36
|
spec.add_development_dependency 'byebug', '~> 11.1', '>= 11.1.3'
|
39
37
|
spec.add_development_dependency 'climate_control'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schadenfred
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem-release
|
@@ -286,7 +286,7 @@ files:
|
|
286
286
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_one/Dockerfile.tt
|
287
287
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_one/docker-compose.yml.tt
|
288
288
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_one/requirements.txt.tt
|
289
|
-
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_two/settings.py
|
289
|
+
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_two/settings.py.tt
|
290
290
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_one/dummy/.keep
|
291
291
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_one/stage_one_test.rb
|
292
292
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_two/dummy/.keep
|