Class: Dotman::Action::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/dotman/actions/link.rb

Instance Method Summary collapse

Constructor Details

#initialize(from, to) ⇒ Link

Returns a new instance of Link.



3
4
5
# File 'lib/dotman/actions/link.rb', line 3

def initialize(from, to)
    @from, @to = from, to
end

Instance Method Details

#to_statementObject



7
8
9
# File 'lib/dotman/actions/link.rb', line 7

def to_statement
    Shell.statement(does_not_exist, create_link, check_link)
end