Class: ProjectModule
- Inherits:
-
Object
- Object
- ProjectModule
- Includes:
- ActiveModel::Model, ActiveModel::Serializers::JSON, ActiveModel::Validations
- Defined in:
- lib/yadecli/model/project_module.rb
Overview
Module
Instance Attribute Summary collapse
-
#buildToolType ⇒ Object
Returns the value of attribute buildToolType.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#id ⇒ Object
Returns the value of attribute id.
-
#languageType ⇒ Object
Returns the value of attribute languageType.
-
#name ⇒ Object
Returns the value of attribute name.
-
#projectId ⇒ Object
Returns the value of attribute projectId.
-
#vcsId ⇒ Object
Returns the value of attribute vcsId.
Instance Method Summary collapse
Instance Attribute Details
#buildToolType ⇒ Object
Returns the value of attribute buildToolType.
11 12 13 |
# File 'lib/yadecli/model/project_module.rb', line 11 def buildToolType @buildToolType end |
#enabled ⇒ Object
Returns the value of attribute enabled.
11 12 13 |
# File 'lib/yadecli/model/project_module.rb', line 11 def enabled @enabled end |
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/yadecli/model/project_module.rb', line 11 def id @id end |
#languageType ⇒ Object
Returns the value of attribute languageType.
11 12 13 |
# File 'lib/yadecli/model/project_module.rb', line 11 def languageType @languageType end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/yadecli/model/project_module.rb', line 11 def name @name end |
#projectId ⇒ Object
Returns the value of attribute projectId.
11 12 13 |
# File 'lib/yadecli/model/project_module.rb', line 11 def projectId @projectId end |
#vcsId ⇒ Object
Returns the value of attribute vcsId.
11 12 13 |
# File 'lib/yadecli/model/project_module.rb', line 11 def vcsId @vcsId end |
Instance Method Details
#attributes ⇒ Object
15 16 17 |
# File 'lib/yadecli/model/project_module.rb', line 15 def attributes instance_values end |
#home ⇒ Object
19 20 21 22 23 24 |
# File 'lib/yadecli/model/project_module.rb', line 19 def home project_client = Yadecli::Client::ProjectClient.new project = project_client.get(projectId) "#{project.home}/src/#{name}" end |
#installed? ⇒ Boolean
26 27 28 |
# File 'lib/yadecli/model/project_module.rb', line 26 def installed? File.directory?(home) end |