Sha256: 904026ba0c692c988d2648b0f9f883003c638dff75e5563cd2ef3a67aa1bf02c
Contents?: true
Size: 872 Bytes
Versions: 2
Compression:
Stored size: 872 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
script-ci-lib-0.0.2 | bin/script-ci-lib |
script-ci-lib-0.0.1 | bin/script-ci-lib |