Skip to content
This repository has been archived by the owner on Feb 11, 2019. It is now read-only.

.virtPHP/ core structure rework (attempt 2) #36

Merged
merged 39 commits into from May 14, 2014
Merged

Conversation

jwoodcock
Copy link
Member

As explained in the email I sent on 4/15/14, listed below, I've reworked how we are creating environments to set the default location to be inside the .virtphp/envs/ folder now.

Also, I've added a number of tests to bring us back up to decent code coverage, not 100%.

The one thing I could not get done as of yet, is the virtphp activate {env name} command. Though I think we are close to getting this worked out.

The big work is the creation of the EnvironmentFile object to handle all communication to and from the environments.json.

EMAIL--------------------------------------------------------
However, because we do not want them adding this folder to their projects, we're moving to do an install script, and virtphp are not project specific, I propose we create all env folders in the ~/.virtphp folder.

This will help keep peoples systems cleaner and can allow us to put an activate command into the virtphp application that simply activates environments.

Something like: virtphp activate {env name}

We should also make environment name unique for a number of reasons.

I'll be happy to tackle all this work for v1 if approved.

…file that we can migrate current functionality into.
…lder by default instead of current directory.
…ot relying on current directories any longer.
…adding the new env to the list. Also extended the clone to name to a full path so it will be created in the env folder.
…ent object and also expanded to full path on creating env.
…d clone tests until we can get that working again.
@jwoodcock
Copy link
Member Author

Found destroy needs to remove it's editing of the environments.json file and move to environmentFile object. Will make this change and update the PR.

@jwoodcock
Copy link
Member Author

Work done, should be ready to review.

@jakerella
Copy link
Member

I reviewed this with @jwoodcock at hacknashville, I'm good with it.


class Command extends ConsoleCommand
{
public $envFile;

public $outpout;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be a misspelling. Let's fix it and make sure it's not misspelled elsewhere.

@ramsey
Copy link
Contributor

ramsey commented May 14, 2014

Aside from my nitpicks, everything looks good to me.

@jwoodcock
Copy link
Member Author

@ramsey 's nitpicks are fixed.

ramsey added a commit that referenced this pull request May 14, 2014
.virtPHP/ core structure rework (attempt 2)
@ramsey ramsey merged commit dc442f3 into virtphp:master May 14, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants