module Bard::CLI::Install

Public Class Methods

included(mod) click to toggle source
# File lib/bard/cli/install.rb, line 2
def self.included mod
  mod.class_eval do

    desc "install", "copies bin/setup and bin/ci scripts into current project."
    def install
      install_files_path = File.expand_path(File.join(__dir__, "../../../install_files"))

      system "cp -R #{install_files_path}/* bin/"
      system "cp -R #{install_files_path}/.github ./"
    end

  end
end

Public Instance Methods

install() click to toggle source
# File lib/bard/cli/install.rb, line 6
def install
  install_files_path = File.expand_path(File.join(__dir__, "../../../install_files"))

  system "cp -R #{install_files_path}/* bin/"
  system "cp -R #{install_files_path}/.github ./"
end