Class: Dtake::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/dtake/cli.rb

Instance Method Summary collapse

Instance Method Details

#d(filename) ⇒ Object



18
19
20
21
# File 'lib/dtake/cli.rb', line 18

def d(filename)
	command = "wget https://web.sfc.keio.ac.jp/~takefuji/" + filename
	system(command)
end

#lsObject



9
10
11
12
13
14
15
# File 'lib/dtake/cli.rb', line 9

def ls()
	list_url = "https://web.sfc.keio.ac.jp/~takefuji/list.html" 
	doc = Nokogiri::HTML(open(list_url))
	doc.inner_html.split("\n").each do |line|
		puts line
	end
end