bard 1.0.5 → 1.0.6

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
  SHA256:
3
- metadata.gz: 0e45ecd5905bd4d3b0dcb23787a81fb9262100eacf50bcef98f59bf494df7d97
4
- data.tar.gz: 00502aa110525a2973d26ba4d3382f57da572a929a8e7b77544e6829b761c94f
3
+ metadata.gz: 5f5ecd87f7e75c849307787fa9cbbdc3deda8bff5a00c697cfd74e998817cd97
4
+ data.tar.gz: 8188084e5da82c13e25a85d65d2ce72e17def72a1b532850ca033d3d95b975bd
5
5
  SHA512:
6
- metadata.gz: 4e549338c287902159c084c7675459e3423d1e9d0c22d371db05a677e8880cf6dbbb4398576beca62cea6e94c9b21ac71e57121d84ae6c3b61c80a6da5c18321
7
- data.tar.gz: 402a1c103e185fa685d4fcce477ffbd0fd3f25a8ae0be9b99045ac7c22258d7886537f7e19841c03252933de819bd4d7ecbe323d95278bcaab713140501cc53d
6
+ metadata.gz: f88de372c1f5a318ed1fc8ccf5796301d6128d876b7f0df1a78efd07760b3c91655a39d0cf8d4bca91d57c0fcf22534660b9df71d14c475d3927bb316a752ab1
7
+ data.tar.gz: cfb453652fda76f97812f2c42662a7fe6de43b0ffd666688ce4351a3c7079a3d793f8fd5d0975e21dacdfb4baf7f523705c5a1da41856299f4212de8d34c1ca9
@@ -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
 
@@ -4,14 +4,14 @@ class Bard::Provision::Data < Bard::Provision
4
4
  def call
5
5
  print "Data:"
6
6
 
7
- # print " Dumping #{server.key} database to file"
8
- # server.run! "bin/rake db:dump"
7
+ print " Dumping #{server.key} database to file"
8
+ server.run! "bin/rake db:dump"
9
9
 
10
- # print " Transfering file from #{server.key},"
11
- # server.copy_file "db/data.sql.gz", to: provision_server, verbose: false
10
+ print " Transfering file from #{server.key},"
11
+ server.copy_file "db/data.sql.gz", to: provision_server, verbose: false
12
12
 
13
- # print " Loading file into database,"
14
- # provision_server.run! "bin/rake db:load"
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},"
@@ -1,3 +1,5 @@
1
+ require "uri"
2
+
1
3
  # test for existence
2
4
 
3
5
  class Bard::Provision::HTTP < Bard::Provision
@@ -1,3 +1,5 @@
1
+ require "bard/copy"
2
+
1
3
  # copy master key if missing
2
4
 
3
5
  class Bard::Provision::MasterKey < Bard::Provision
@@ -15,7 +15,7 @@ class Bard::Provision::MySQL < Bard::Provision
15
15
  end
16
16
 
17
17
  def mysql_responding?
18
- provision_server.run "sudo service mysql status | cat", quiet: true
18
+ provision_server.run "sudo service mysql status | cat", home: true, quiet: true
19
19
  end
20
20
  end
21
21
 
@@ -1,3 +1,5 @@
1
+ require "bard/github"
2
+
1
3
  # generate and install ssh public key into deploy keys
2
4
  # add repo to known hosts
3
5
  # clone repo
data/lib/bard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
4
4
 
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.5
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-25 00:00:00.000000000 Z
11
+ date: 2024-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor