Class: CIJoe::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- CIJoe::Server
- Defined in:
- lib/cijoe/server.rb
Instance Attribute Summary collapse
-
#joe ⇒ Object
readonly
Returns the value of attribute joe.
Class Method Summary collapse
Instance Method Summary collapse
- #check_project ⇒ Object
-
#initialize(*args) ⇒ Server
constructor
A new instance of Server.
Constructor Details
Instance Attribute Details
#joe ⇒ Object (readonly)
Returns the value of attribute joe.
6 7 8 |
# File 'lib/cijoe/server.rb', line 6 def joe @joe end |
Class Method Details
Instance Method Details
#check_project ⇒ Object
79 80 81 82 83 84 85 |
# File 'lib/cijoe/server.rb', line 79 def check_project if .project_path.nil? || !File.exists?(File.(.project_path)) puts "Whoops! I need the path to a Git repo." puts " $ git clone [email protected]:username/project.git project" abort " $ cijoe project" end end |