rumination 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 152e08702548edd933148c86a34021b38d4c7773
4
- data.tar.gz: 6ad821b539978f4e9b89a9206e90e884bd778681
3
+ metadata.gz: ddea6500232184f68e7fadb6186dd5b637a2d5a0
4
+ data.tar.gz: fe86d1af1b7da03d29bef00ffefd3fe07a7c6ca2
5
5
  SHA512:
6
- metadata.gz: 183a13215da86e46804064a502b0a1d1eb0210bfb267c43b40a0a5ab4f7d1fcc16d9261084cf157b1d6484e153dd921cb6b200fb323a307c5445eee4fc43aed7
7
- data.tar.gz: 9c34059e25892d85dbc5dbf398104dcd412689cc5fa72e2e308effb921a674badab4e7880ac6c5ecbf6fcdf17896bf2586155746ede147d81f568d2915375801
6
+ metadata.gz: be637421a75efe9199516a59787cbc6f698ee26ad3cbfbb2429afee16ede9c9d5b0477f14467b9998a82fdc5a760b4c3d34958b28c8efc2722ed9c3c122ae614
7
+ data.tar.gz: f6f66c099cae0032e87631c957efce8a2f8a54ff7ee8ee1aa2cc11f6e150200f6b3b474bee7944b96d94818aa2f44632b94eaa34d579cc0c039e7c1757c88624
@@ -4,6 +4,8 @@ require "dotenv/parser"
4
4
  module Rumination
5
5
  module Deploy
6
6
  Base ||= Struct.new(:target) do
7
+ delegate :config, to: Deploy
8
+
7
9
  def bootstrap
8
10
  call do
9
11
  on_fresh_containers
@@ -37,9 +39,9 @@ module Rumination
37
39
 
38
40
  def load_target_config
39
41
  load target_config_path
40
- ENV["VIRTUAL_HOST"] = Deploy.config.virtual_host
41
- ENV["COMPOSE_FILE"] = Deploy.config.compose_file if Deploy.config.compose_file
42
- setup_docker_machine_env if Deploy.config.docker_machine
42
+ ENV["VIRTUAL_HOST"] = config.virtual_host
43
+ ENV["COMPOSE_FILE"] = config.compose_file if config.compose_file
44
+ setup_docker_machine_env if config.docker_machine
43
45
  rescue LoadError => e
44
46
  raise UnknownTarget, e.message
45
47
  end
@@ -53,7 +55,7 @@ module Rumination
53
55
  end
54
56
 
55
57
  def setup_docker_machine_env
56
- dm_env_str = `docker-machine env #{Deploy.config.docker_machine}`
58
+ dm_env_str = `docker-machine env #{config.docker_machine}`
57
59
  ENV.update Dotenv::Parser.call(dm_env_str)
58
60
  end
59
61
 
@@ -0,0 +1,9 @@
1
+ require "securerandom"
2
+
3
+ module Rumination
4
+ module Generate
5
+ def self.password
6
+ SecureRandom.base64(12)
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Rumination
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Baguinski
@@ -133,6 +133,7 @@ files:
133
133
  - lib/rumination/docker_compose.rb
134
134
  - lib/rumination/docker_compose/container.rb
135
135
  - lib/rumination/docker_compose/sh.rb
136
+ - lib/rumination/generate.rb
136
137
  - lib/rumination/pg.rb
137
138
  - lib/rumination/pg/commands.rb
138
139
  - lib/rumination/pg/restore.rb