bard 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bard/cli/provision.rb +2 -2
- data/lib/bard/provision/data.rb +6 -6
- data/lib/bard/provision/http.rb +2 -0
- data/lib/bard/provision/masterkey.rb +2 -0
- data/lib/bard/provision/mysql.rb +1 -1
- data/lib/bard/provision/repo.rb +2 -0
- data/lib/bard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f5ecd87f7e75c849307787fa9cbbdc3deda8bff5a00c697cfd74e998817cd97
|
4
|
+
data.tar.gz: 8188084e5da82c13e25a85d65d2ce72e17def72a1b532850ca033d3d95b975bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f88de372c1f5a318ed1fc8ccf5796301d6128d876b7f0df1a78efd07760b3c91655a39d0cf8d4bca91d57c0fcf22534660b9df71d14c475d3927bb316a752ab1
|
7
|
+
data.tar.gz: cfb453652fda76f97812f2c42662a7fe6de43b0ffd666688ce4351a3c7079a3d793f8fd5d0975e21dacdfb4baf7f523705c5a1da41856299f4212de8d34c1ca9
|
data/lib/bard/cli/provision.rb
CHANGED
@@ -4,8 +4,8 @@ module Bard::CLI::Provision
|
|
4
4
|
def self.included mod
|
5
5
|
mod.class_eval do
|
6
6
|
|
7
|
-
desc "provision [ssh_url]", "takes an ssh url to a raw ubuntu 22.04 install, and readies it in the shape of :production"
|
8
|
-
def provision ssh_url
|
7
|
+
desc "provision [ssh_url]", "takes an optional ssh url to a raw ubuntu 22.04 install, and readies it in the shape of :production"
|
8
|
+
def provision ssh_url=config[:production].ssh
|
9
9
|
Bard::Provision.call(config, ssh_url.dup) # dup unfreezes the string for later mutation
|
10
10
|
end
|
11
11
|
|
data/lib/bard/provision/data.rb
CHANGED
@@ -4,14 +4,14 @@ class Bard::Provision::Data < Bard::Provision
|
|
4
4
|
def call
|
5
5
|
print "Data:"
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
print " Dumping #{server.key} database to file"
|
8
|
+
server.run! "bin/rake db:dump"
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
print " Transfering file from #{server.key},"
|
11
|
+
server.copy_file "db/data.sql.gz", to: provision_server, verbose: false
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
print " Loading file into database,"
|
14
|
+
provision_server.run! "bin/rake db:load"
|
15
15
|
|
16
16
|
config.data.each do |path|
|
17
17
|
print " Synchronizing files in #{path},"
|
data/lib/bard/provision/http.rb
CHANGED
data/lib/bard/provision/mysql.rb
CHANGED
data/lib/bard/provision/repo.rb
CHANGED
data/lib/bard/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|