Module: BitClipboardCopy
- Included in:
- Takelage::BitClipboard, Takelage::BitRequire, Takelage::InitPacker, Takelage::InitTakelage
- Defined in:
- lib/takelage/bit/clipboard/copy.rb
Overview
takelage bit clipboard copy
Instance Method Summary collapse
-
#bit_clipboard_copy(dir, scope) ⇒ Object
Backend method for bit copy.
Instance Method Details
#bit_clipboard_copy(dir, scope) ⇒ Object
Backend method for bit copy.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/takelage/bit/clipboard/copy.rb', line 6 def bit_clipboard_copy(dir, scope) # remove trailing slash dir = dir.chomp('/') log.debug "Running bit copy \"#{dir}\" to \"#{scope}\"" return false unless configured? %w[project_root_dir] return false unless _bit_clipboard_lib_prepare_workspace unless File.directory? dir log.error "The directory \"#{dir}\" does not exist" return false end _bit_clipboard_copy_dir dir, scope end |