Skip to content

Commit

Permalink
Cleanup outputs around Starting/Terminating.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasginganinja committed Nov 13, 2019
1 parent c4b8f2b commit be915f6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/vagrant-mutagen/Action/StartOrchestration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def initialize(app, env)

def call(env)
if mutagen_enabled
@ui.info "[vagrant-mutagen] Starting Project Orchestration (config: /mutagen.yml)"
startOrchestration
end
@app.call(env)
Expand Down
1 change: 0 additions & 1 deletion lib/vagrant-mutagen/Action/TerminateOrchestration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def initialize(app, env)

def call(env)
if mutagen_enabled
@ui.info "[vagrant-mutagen] Terminating Project Orchestration (config: /mutagen.yml)"
terminateOrchestration
end
@app.call(env)
Expand Down
4 changes: 2 additions & 2 deletions lib/vagrant-mutagen/Mutagen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def startOrchestration()
@ui.error "[vagrant-mutagen] Failed to start mutagen daemon"
end
if !system(projectStartedCommand) # mutagen project list returns 1 on error when no project is started
@ui.info "[vagrant-mutagen] Starting mutagen project orchestration"
@ui.info "[vagrant-mutagen] Starting mutagen project orchestration (config: /mutagen.yml)"
if !system(projectStartCommand)
@ui.error "[vagrant-mutagen] Failed to start mutagen project (see error above)"
end
Expand All @@ -174,7 +174,7 @@ def startOrchestration()
def terminateOrchestration()
projectStartedCommand = "mutagen project list >/dev/null 2>/dev/null"
projectTerminateCommand = "mutagen project terminate"
projectStatusCommand = "mutagen project list"
projectStatusCommand = "mutagen project list 2>/dev/null"
if system(projectStartedCommand) # mutagen project list returns 1 on error when no project is started
@ui.info "[vagrant-mutagen] Stopping mutagen project orchestration"
if !system(projectTerminateCommand)
Expand Down

0 comments on commit be915f6

Please sign in to comment.