1
0
forked from extern/nix-config

Use extend self in maid.cr

This commit is contained in:
Donovan Glover 2017-11-14 13:36:59 -05:00
parent 5ee44c4a02
commit 91b2062722
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D

View File

@ -35,7 +35,10 @@ require "../lib/trucolor"
module Maid module Maid
UPSTREAM = ENV["HOME"] + "/Home/new-start/dotfiles" UPSTREAM = ENV["HOME"] + "/Home/new-start/dotfiles"
def self.maid()
extend self
def maid()
Maid.status() if ARGV.size() == 0 Maid.status() if ARGV.size() == 0
case ARGV[0].delete("-") case ARGV[0].delete("-")
when "help", "h"; Maid.help() when "help", "h"; Maid.help()
@ -48,37 +51,37 @@ module Maid
end end
end end
def self.help() def help()
puts "Help" puts "Help"
exit 0 exit 0
end end
def self.up() def up()
puts "Up" puts "Up"
exit 0 exit 0
end end
def self.down() def down()
puts "Down" puts "Down"
exit 0 exit 0
end end
def self.status() def status()
puts "Status" puts "Status"
exit 0 exit 0
end end
def self.diff() def diff()
puts "Diff" puts "Diff"
exit 0 exit 0
end end
def self.add() def add()
puts "Add" puts "Add"
exit 0 exit 0
end end
def self.remove() def remove()
puts "Remove" puts "Remove"
exit 0 exit 0
end end