Class: ProjectModule

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, ActiveModel::Serializers::JSON, ActiveModel::Validations
Defined in:
lib/yadecli/model/project_module.rb

Overview

Module

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#buildToolTypeObject

Returns the value of attribute buildToolType.



11
12
13
# File 'lib/yadecli/model/project_module.rb', line 11

def buildToolType
  @buildToolType
end

#enabledObject

Returns the value of attribute enabled.



11
12
13
# File 'lib/yadecli/model/project_module.rb', line 11

def enabled
  @enabled
end

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/yadecli/model/project_module.rb', line 11

def id
  @id
end

#languageTypeObject

Returns the value of attribute languageType.



11
12
13
# File 'lib/yadecli/model/project_module.rb', line 11

def languageType
  @languageType
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/yadecli/model/project_module.rb', line 11

def name
  @name
end

#projectIdObject

Returns the value of attribute projectId.



11
12
13
# File 'lib/yadecli/model/project_module.rb', line 11

def projectId
  @projectId
end

#vcsIdObject

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

#attributesObject



15
16
17
# File 'lib/yadecli/model/project_module.rb', line 15

def attributes
  instance_values
end

#homeObject



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

Returns:

  • (Boolean)


26
27
28
# File 'lib/yadecli/model/project_module.rb', line 26

def installed?
  File.directory?(home)
end