class Dotman::Action::Link

Attributes

from[R]
to[R]

Public Class Methods

new(from, to) click to toggle source
# File lib/dotman/actions/link.rb, line 3
def initialize(from, to)
    @from, @to = from, to
end

Public Instance Methods

to_statement() click to toggle source
# File lib/dotman/actions/link.rb, line 7
def to_statement
    Shell.statement(does_not_exist, create_link, check_link)
end

Private Instance Methods

does_not_exist() click to toggle source
# File lib/dotman/actions/link.rb, line 23
def does_not_exist
    Shell.comparison('$HOME_DIR/' + to, '! -e')
end
pair() click to toggle source
# File lib/dotman/actions/link.rb, line 15
def pair
    [from, to]
end