Class: Comet::Rules::TmpDir

Inherits:
Object
  • Object
show all
Defined in:
lib/comet/rules/tmpdir.rb

Instance Method Summary collapse

Instance Method Details

#commandsObject



20
21
22
# File 'lib/comet/rules/tmpdir.rb', line 20

def commands
  { COMET_LN: 'ln' }
end

#contentsObject



8
9
10
11
12
13
14
# File 'lib/comet/rules/tmpdir.rb', line 8

def contents
  [
    ".PHONY: #{target}",
    "#{target}:",
    "\tif #{exists?} || #{valid?}; then #{create}; fi"
  ]
end

#rulesObject



16
17
18
# File 'lib/comet/rules/tmpdir.rb', line 16

def rules
  []
end

#targetObject



4
5
6
# File 'lib/comet/rules/tmpdir.rb', line 4

def target
  Comet::TMPDIR
end