class Bootsetting::CLI

Your code goes here…

Public Instance Methods

copy(from_dir, to_dir) click to toggle source
# File lib/bootsetting.rb, line 33
def copy(from_dir, to_dir)
    puts "form: #{from_dir} to: #{to_dir}".bright.red
    helper = CopyHelper.new()  
    helper.copy(from_dir, to_dir)
end
dfc(type, suffix) click to toggle source
# File lib/bootsetting.rb, line 19
def dfc(type, suffix)
    puts "start to check ......".green
    puts "parames type: #{type} suffix: #{suffix}".blue
    helper = FileCheckHelper.new()
    helper.check(type, suffix)
end
hello(name, from=nil) click to toggle source
# File lib/bootsetting.rb, line 13
def hello(name, from=nil)
  puts "from: #{from}" if from
  puts "Hello method #{name}".bright.red
end
kswitch() click to toggle source
# File lib/bootsetting.rb, line 27
def kswitch()
              `hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x7000000E0},{"HIDKeyboardModifierMappingSrc":0x7000000E0,"HIDKeyboardModifierMappingDst":0x700000039}]}'`
              puts "say hello to new keyMapping".bright.green
end