Class: FentonShell::Project
- Inherits:
-
Object
- Object
- FentonShell::Project
- Defined in:
- lib/fenton_shell/project.rb
Overview
Interfaces with the project api on fenton server
Instance Attribute Summary collapse
-
#message ⇒ String
Success or failure message and why.
Instance Method Summary collapse
-
#create(global_options, options) ⇒ String
Creates a new project on fenton server by sending a post request with json from the command line to create the project.
Instance Attribute Details
#message ⇒ String
Returns success or failure message and why.
6 7 8 |
# File 'lib/fenton_shell/project.rb', line 6 def end |
Instance Method Details
#create(global_options, options) ⇒ String
Creates a new project on fenton server by sending a post request with json from the command line to create the project
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fenton_shell/project.rb', line 15 def create(, ) status, body = project_create(, ) if status == 201 ((body)) true else (body) false end end |