akamaized 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/akamaized/connections.rb +4 -4
- data/lib/akamaized/version.rb +1 -1
- metadata +1 -1
@@ -27,17 +27,17 @@ module Akamaized
|
|
27
27
|
include AkamaizedException
|
28
28
|
|
29
29
|
def initialize(config = {})
|
30
|
-
Config.new(config)
|
30
|
+
@config = Config.new(config)
|
31
31
|
create_connection
|
32
32
|
end
|
33
33
|
|
34
34
|
|
35
35
|
def create_connection
|
36
36
|
begin
|
37
|
-
@connection = Net::FTP.new(
|
37
|
+
@connection = Net::FTP.new(@config.host)
|
38
38
|
@connection.passive = true
|
39
|
-
@connection.login(
|
40
|
-
@connection.chdir(
|
39
|
+
@connection.login(@config.username, @config.password)
|
40
|
+
@connection.chdir(@config.base_dir) if @config.base_dir
|
41
41
|
rescue Exception => e
|
42
42
|
raise connection_error
|
43
43
|
end
|
data/lib/akamaized/version.rb
CHANGED