Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Check for the specified env variable #14

Merged
merged 2 commits into from
Jul 6, 2015
Merged

Conversation

richardmiller-zz
Copy link
Contributor

No description provided.

@richardmiller-zz richardmiller-zz force-pushed the check-for-env-variable branch from fc15e8f to 8c4b553 Compare July 6, 2015 15:32
@@ -42,7 +42,7 @@ public function save(EnvironmentVariable $environmentVariable)
public function has(EnvironmentVariable $environmentVariable)
{
$process = $this->processRunner->run(
new Process('grep DOCKER_HOST '.$this->file),
new Process("grep {$environmentVariable->getName()} $this->file"),
Copy link
Contributor

Choose a reason for hiding this comment

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

How, who made the before ? :)
Can you use sprintf instead ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, done

sroze added a commit that referenced this pull request Jul 6, 2015
Check for the specified env variable
@sroze sroze merged commit 1b3659c into master Jul 6, 2015
@sroze sroze deleted the check-for-env-variable branch July 6, 2015 15:50
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.

2 participants