Module: Bard::CLI::Install

Defined in:
lib/bard/cli/install.rb

Class Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
14
# 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