Class: Ober::Configuration::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/ober/configuration.rb

Overview

An application that is installed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Application

Returns a new instance of Application.



42
43
44
# File 'lib/ober/configuration.rb', line 42

def initialize name
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



40
41
42
# File 'lib/ober/configuration.rb', line 40

def name
  @name
end

Instance Method Details

#git(url = nil, opts = {}) ⇒ Object



54
55
56
# File 'lib/ober/configuration.rb', line 54

def git url=nil, opts={}
  @git ||= [url, opts]
end

#root(path = nil) ⇒ Object



46
47
48
# File 'lib/ober/configuration.rb', line 46

def root path=nil
  @root ||= path
end

#rvm(version = nil) ⇒ Object



50
51
52
# File 'lib/ober/configuration.rb', line 50

def rvm version=nil
  @rvm ||= version
end

#user(name = nil) ⇒ Object



58
59
60
# File 'lib/ober/configuration.rb', line 58

def user name=nil
  @user ||= name
end