Class: Registry::Checkout
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
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_command ⇒ Object
87
88
89
|
# File 'lib/radiant/extension/script.rb', line 87
def checkout_command
raise "Not Implemented!"
end
|
91
92
93
94
|
# File 'lib/radiant/extension/script.rb', line 91
def install
checkout
super
end
|