Class: Registry::Checkout

Inherits:
Installer show all
Defined in:
lib/radiant/extension/script.rb

Direct Known Subclasses

Git, Subversion

Instance Attribute Summary

Attributes inherited from Installer

#name, #path, #url

Instance Method Summary collapse

Methods inherited from Installer

#copy_to_vendor_extensions, #migrate, #update

Methods inherited from Action

#rake

Constructor Details

#initialize(extension) ⇒ Checkout

Returns a new instance of Checkout.



83
84
85
# File 'lib/radiant/extension/script.rb', line 83

def initialize(extension)
  super(extension.repository_url, extension.name)
end

Instance Method Details

#checkoutObject



96
97
98
99
# File 'lib/radiant/extension/script.rb', line 96

def checkout
  self.path = File.join(Dir.tmpdir, name)
  system "cd #{Dir.tmpdir}; #{checkout_command}"
end

#checkout_commandObject



87
88
89
# File 'lib/radiant/extension/script.rb', line 87

def checkout_command
  raise "Not Implemented!"
end

#installObject



91
92
93
94
# File 'lib/radiant/extension/script.rb', line 91

def install
  checkout
  super
end