Class: Boxen::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/boxen/project.rb

Overview

A project managed by Boxen.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dir) ⇒ Project

Returns a new instance of Project.



15
16
17
18
# File 'lib/boxen/project.rb', line 15

def initialize(dir)
  @dir  = dir
  @name = File.basename @dir
end

Instance Attribute Details

#dirObject (readonly)

The directory where this project’s repo should live.



9
10
11
# File 'lib/boxen/project.rb', line 9

def dir
  @dir
end

#nameObject (readonly)

The name of this project.



13
14
15
# File 'lib/boxen/project.rb', line 13

def name
  @name
end