Class: Project
- Inherits:
-
Object
- Object
- Project
- Includes:
- ActiveModel::Model, ActiveModel::Serializers::JSON, ActiveModel::Validations
- Defined in:
- lib/yadecli/model/project.rb
Overview
Project
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#ideType ⇒ Object
Returns the value of attribute ideType.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nvmRuntimeId ⇒ Object
Returns the value of attribute nvmRuntimeId.
-
#pyenvRuntimeId ⇒ Object
Returns the value of attribute pyenvRuntimeId.
-
#rvmRuntimeId ⇒ Object
Returns the value of attribute rvmRuntimeId.
-
#vcsId ⇒ Object
Returns the value of attribute vcsId.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/yadecli/model/project.rb', line 11 def id @id end |
#ideType ⇒ Object
Returns the value of attribute ideType.
11 12 13 |
# File 'lib/yadecli/model/project.rb', line 11 def ideType @ideType end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/yadecli/model/project.rb', line 11 def name @name end |
#nvmRuntimeId ⇒ Object
Returns the value of attribute nvmRuntimeId.
11 12 13 |
# File 'lib/yadecli/model/project.rb', line 11 def nvmRuntimeId @nvmRuntimeId end |
#pyenvRuntimeId ⇒ Object
Returns the value of attribute pyenvRuntimeId.
11 12 13 |
# File 'lib/yadecli/model/project.rb', line 11 def pyenvRuntimeId @pyenvRuntimeId end |
#rvmRuntimeId ⇒ Object
Returns the value of attribute rvmRuntimeId.
11 12 13 |
# File 'lib/yadecli/model/project.rb', line 11 def rvmRuntimeId @rvmRuntimeId end |
#vcsId ⇒ Object
Returns the value of attribute vcsId.
11 12 13 |
# File 'lib/yadecli/model/project.rb', line 11 def vcsId @vcsId end |
Instance Method Details
#attributes ⇒ Object
15 16 17 |
# File 'lib/yadecli/model/project.rb', line 15 def attributes instance_values end |
#home ⇒ Object
19 20 21 |
# File 'lib/yadecli/model/project.rb', line 19 def home "#{File.('~')}/yade/projects/#{name}" end |
#installed? ⇒ Boolean
23 24 25 |
# File 'lib/yadecli/model/project.rb', line 23 def installed? File.directory?(home) end |