Class: Registry::Checkout
- Defined in:
- lib/radiant/extension/script.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Installer
Instance Method Summary collapse
- #checkout ⇒ Object
- #checkout_command ⇒ Object
-
#initialize(extension) ⇒ Checkout
constructor
A new instance of Checkout.
- #install ⇒ Object
Methods inherited from Installer
#copy_to_vendor_extensions, #migrate, #update
Methods inherited from Action
#file_utils, #rake, #tasks_include?
Constructor Details
#initialize(extension) ⇒ Checkout
Returns a new instance of Checkout.
106 107 108 |
# File 'lib/radiant/extension/script.rb', line 106 def initialize(extension) super(extension.repository_url, extension.name) end |
Instance Method Details
#checkout ⇒ Object
119 120 121 122 |
# File 'lib/radiant/extension/script.rb', line 119 def checkout self.path = File.join(Dir.tmpdir, name) cd(Dir.tmpdir) { system "#{checkout_command}" } end |
#checkout_command ⇒ Object
110 111 112 |
# File 'lib/radiant/extension/script.rb', line 110 def checkout_command raise "Not Implemented!" end |
#install ⇒ Object
114 115 116 117 |
# File 'lib/radiant/extension/script.rb', line 114 def install checkout super end |