Class: Purple::Getter::Getter_cp

Inherits:
Generic
  • Object
show all
Defined in:
lib/purple/getter_cp.rb

Instance Attribute Summary

Attributes inherited from Generic

#content_type, #length, #thread, #uri

Instance Method Summary collapse

Methods inherited from Generic

#initialize

Constructor Details

This class inherits a constructor from Purple::Getter::Generic

Instance Method Details

#getObject



6
7
8
9
10
11
12
13
14
# File 'lib/purple/getter_cp.rb', line 6

def get
    if system "ln '#{@uri.path}' '#{@destdir}/'"
        @done = '100'
        @status = 'Done'
    else
        @done = '100'
        @status = 'Error'
    end
end

#get_statusObject



16
17
18
# File 'lib/purple/getter_cp.rb', line 16

def get_status
    [@status, @done]
end