bard 1.0.4 → 1.0.6

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: 02e64487d18917a07903bf229f7d75c39c78bffa186e413fd7f43559c0bc1360
4
- data.tar.gz: 78ceaef22043bf34ec0a17502911418b295955f2beb18fcad85b86319d468c1f
3
+ metadata.gz: 5f5ecd87f7e75c849307787fa9cbbdc3deda8bff5a00c697cfd74e998817cd97
4
+ data.tar.gz: 8188084e5da82c13e25a85d65d2ce72e17def72a1b532850ca033d3d95b975bd
5
5
  SHA512:
6
- metadata.gz: 8cc63bf55fc0ab55ce704e40a7e55d30b0c4c29c25d8667b92bd0d0d1cfa606ef6f29c38437ec1f8d35d1459447d9832d409db31f981aa35db9f2642ce6a0fe5
7
- data.tar.gz: a1c839d0a04e5f63a970c7480116385e51e1490dc009ae54d33d81ab63e209b606f9ae20d0055e65aba16d2668a7ce013bf80de10284d9f0b3eb1b220ae17d8f
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
 
data/lib/bard/cli/run.rb CHANGED
@@ -12,7 +12,7 @@ module Bard::CLI::Run
12
12
  desc "run <command>", "run the given command on production"
13
13
  def run *args
14
14
  server = config[:production]
15
- server.run! *args, verbose: true
15
+ server.run! *args.join(" "), verbose: true
16
16
  rescue Bard::Command::Error => e
17
17
  puts red("!!! ") + "Running command failed: #{yellow(e.message)}"
18
18
  exit 1
@@ -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.4"
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.4
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-23 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