Sha256: cccf99749b32148fab700f8c4eea0d35236ebf43f7d99aa334355109d1b8fb41
Contents?: true
Size: 862 Bytes
Versions: 1
Compression:
Stored size: 862 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'methadone' require 'script-ci-lib' class App include Methadone::Main include Methadone::CLILogging include Methadone::SH main do |script_dir| destination_root = Pathname.new(script_dir) destination_lib = destination_root.join('ci/lib') exit_now!(1, "#{destination_root} is not a directory") unless destination_root.directory? info "setting up in #{destination_root}" source_dir = File.expand_path(File.dirname(__FILE__) + '/../lib/source') destination_lib.mkpath Dir["#{source_dir}/*"].each do |file| destination = destination_lib.join(File.basename(file)) info "=> #{destination}" sh! "cp -p #{file} #{destination}" end end arg :script_dir, 'Where to put the CI lib files' version ScriptCiLib::VERSION use_log_level_option go! end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
script-ci-lib-0.0.3 | bin/script-ci-lib |