Class: Serverkit::Resources::Git

Inherits:
Base
  • Object
show all
Defined in:
lib/serverkit/resources/git.rb

Constant Summary collapse

DEFAULT_STATUS =
"cloned"

Instance Attribute Summary

Attributes inherited from Base

#attributes, #backend, #recipe

Instance Method Summary collapse

Methods inherited from Base

#all_errors, attribute, #initialize, #to_a, #type

Constructor Details

This class inherits a constructor from Serverkit::Resources::Base

Instance Method Details

#applyObject



12
13
14
15
# File 'lib/serverkit/resources/git.rb', line 12

def apply
  clone if clonable?
  update if updatable?
end

#checktrue, false

Returns:

  • (true, false)


18
19
20
# File 'lib/serverkit/resources/git.rb', line 18

def check
  has_git? && cloned? && !updatable?
end