Hoodow-pickhost-cli 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/bin/pickhost +2 -1
- data/lib/pickhost_cli.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/bin/pickhost
CHANGED
@@ -10,6 +10,7 @@ USE:
|
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
+
require 'pathname'
|
13
14
|
require 'yaml'
|
14
15
|
require 'json'
|
15
16
|
require 'httpclient'
|
@@ -19,7 +20,7 @@ module Pickhost
|
|
19
20
|
|
20
21
|
def parse(input)
|
21
22
|
return help if input == '-h' || input.nil? || input[/help/]
|
22
|
-
upload(
|
23
|
+
upload(Pathname(input).realpath)
|
23
24
|
end
|
24
25
|
|
25
26
|
def upload(file)
|
data/lib/pickhost_cli.rb
CHANGED