hyde-ftp 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -1
- data/hyde-ftp.gemspec +1 -1
- data/lib/hyde.rb +6 -6
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -6,4 +6,5 @@ Version 0.0.5: Runtime fail fix.
|
|
6
6
|
Version 0.0.6: Require fail fix.
|
7
7
|
Version 0.0.7: Require fail fix.
|
8
8
|
Version 0.0.8: Cleaning up fix.
|
9
|
-
Version 0.1.0: No longer builds site before deployment to avoid jekyll config related errors.
|
9
|
+
Version 0.1.0: No longer builds site before deployment to avoid jekyll config related errors.
|
10
|
+
Version 0.1.1: Fixed private method error.
|
data/hyde-ftp.gemspec
CHANGED
data/lib/hyde.rb
CHANGED
@@ -3,9 +3,7 @@
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'net/ftp'
|
5
5
|
require 'yaml'
|
6
|
-
require 'hyde/ftp-transfer'
|
7
|
-
require 'hyde/ftp-transfer.rb'
|
8
|
-
require 'hyde'
|
6
|
+
require 'lib/hyde/ftp-transfer.rb'
|
9
7
|
|
10
8
|
class Jekyll
|
11
9
|
$jekyll = Jekyll.new()
|
@@ -25,7 +23,7 @@ class Jekyll
|
|
25
23
|
end
|
26
24
|
|
27
25
|
def new_site(name)
|
28
|
-
|
26
|
+
exists()
|
29
27
|
%x( jekyll new #{name} )
|
30
28
|
puts "Site created."
|
31
29
|
end
|
@@ -46,9 +44,9 @@ class Jekyll
|
|
46
44
|
ftp.login(@username, @password)
|
47
45
|
ftp.chdir(@remote_dir)
|
48
46
|
|
49
|
-
|
47
|
+
clean_ftp(ftp)
|
50
48
|
|
51
|
-
|
49
|
+
mirror @local_dir, ftp
|
52
50
|
|
53
51
|
ftp.quit
|
54
52
|
end
|
@@ -77,6 +75,8 @@ when "new_site"
|
|
77
75
|
$jekyll.new_site
|
78
76
|
when "help"
|
79
77
|
$jekyll.help
|
78
|
+
when "list"
|
79
|
+
%x( hyde help )
|
80
80
|
else
|
81
81
|
puts "You didn't give me a command.\nRun 'hyde help' to see a command list."
|
82
82
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyde-ftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jesse Herrick
|