Class: Conjure::Application
- Inherits:
-
Object
- Object
- Conjure::Application
- Defined in:
- lib/conjure/application.rb
Instance Attribute Summary collapse
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
3 4 5 |
# File 'lib/conjure/application.rb', line 3 def origin @origin end |
Class Method Details
.find(options = {}) ⇒ Object
5 6 7 |
# File 'lib/conjure/application.rb', line 5 def self.find( = {}) new() end |
Instance Method Details
#data_sets ⇒ Object
13 14 15 |
# File 'lib/conjure/application.rb', line 13 def data_sets DataSet.find(:origin => @origin) end |
#instances ⇒ Object
9 10 11 |
# File 'lib/conjure/application.rb', line 9 def instances Instance.where(:origin => @origin) end |
#name ⇒ Object
17 18 19 20 |
# File 'lib/conjure/application.rb', line 17 def name match = @origin.match(/\/([^.]+)\.git$/) if @origin match[1] if match end |