Class: Project

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

Overview

Project

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#ideTypeObject

Returns the value of attribute ideType.



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

def ideType
  @ideType
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#nvmRuntimeIdObject

Returns the value of attribute nvmRuntimeId.



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

def nvmRuntimeId
  @nvmRuntimeId
end

#pyenvRuntimeIdObject

Returns the value of attribute pyenvRuntimeId.



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

def pyenvRuntimeId
  @pyenvRuntimeId
end

#rvmRuntimeIdObject

Returns the value of attribute rvmRuntimeId.



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

def rvmRuntimeId
  @rvmRuntimeId
end

#vcsIdObject

Returns the value of attribute vcsId.



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

def vcsId
  @vcsId
end

Instance Method Details

#attributesObject



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

def attributes
  instance_values
end

#homeObject



19
20
21
# File 'lib/yadecli/model/project.rb', line 19

def home
  "#{File.expand_path('~')}/yade/projects/#{name}"
end

#installed?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/yadecli/model/project.rb', line 23

def installed?
  File.directory?(home)
end