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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce80e2557743ac04bef8961392b5c23bf51f1cf99a73a85cda4bb96f08c75a54
4
- data.tar.gz: 30fed01b1e4fb71dd11139515d8a85dd59b71381328420237f9a20b933670b68
3
+ metadata.gz: fca977ddce6ff695738dee841a235d4f1fe753b10d72cf0680b97448a42a2190
4
+ data.tar.gz: 66cb772f603fed68743466db5203a34ddd87584ef3b5bb6602a7a7663a0d57d6
5
5
  SHA512:
6
- metadata.gz: a824a157c60ed88f4d5c6e80c4bc663e040fd2a436827a4784f609870dba0ca02ed7d0d00bfa90358c5e543c23681b115cbbdc1702c71e5d0aa0ead982b63ef6
7
- data.tar.gz: 7691813e2263ca4007885b6351e7d243681855742cc10a53b122b7474dda489da90184cc792c971fa303f6d3ba9a0b437cfbca088ed10e121165eaea85dbfce9
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: %w[base ci development production]
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: %w[backend database frontend],
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: %w[base ci development production],
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
@@ -37,5 +37,9 @@ module Roro
37
37
  def self.roro_environments
38
38
  %w[base development production test staging ci]
39
39
  end
40
+
41
+ def self.roro_default_containers
42
+ %w[backend database frontend]
43
+ end
40
44
  end
41
45
  end
@@ -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]}\" . && sudo chown -R $USER:$USER ."
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
- - directory 'stage_two/settings.py', "./#{@env[:base][:app_name][:value]}/", @env
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 &&
data/lib/roro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Roro
2
- VERSION = "0.3.25"
2
+ VERSION = "0.3.27"
3
3
  end
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.25
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-22 00:00:00.000000000 Z
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