Module: EasyInstaller::FakeLib::InstallHelper

Defined in:
lib/easy_installer/fake/ftp/install_helper.rb,
lib/easy_installer/fake/local/install_helper.rb

Instance Method Summary collapse

Instance Method Details

#chmod(remote_file, chmod) ⇒ Object



24
25
26
# File 'lib/easy_installer/fake/ftp/install_helper.rb', line 24

def chmod(remote_file, chmod)
  true
end

#chmod_r(remote_dir, chmod) ⇒ Object

need to test



28
29
30
# File 'lib/easy_installer/fake/ftp/install_helper.rb', line 28

def chmod_r(remote_dir, chmod)
  true
end

#create_directory(dirpath, chmod = 664) ⇒ Object



16
17
18
# File 'lib/easy_installer/fake/ftp/install_helper.rb', line 16

def create_directory(dirpath, chmod=664)
  true
end

#move_directory(from_directory, to_directory) ⇒ Object



12
13
14
# File 'lib/easy_installer/fake/ftp/install_helper.rb', line 12

def move_directory(local_directory,remote_directory)
  true
end

#move_file(local_file, remote_file, chmod = 664) ⇒ Object



20
21
22
# File 'lib/easy_installer/fake/ftp/install_helper.rb', line 20

def move_file(local_file,remote_file, chmod=664)
  true
end

#setupObject



4
5
6
7
8
9
10
# File 'lib/easy_installer/fake/ftp/install_helper.rb', line 4

def setup params = {}
  host = params[:host] || $user_input["ftp_host"].value 
  username = params[:username] || $user_input["ftp_username"].value
  password = params[:password] || $user_input["ftp_password"].value
  @ftp = Net::FTP.new(host)
  @ftp.(username, password)
end