Skip to content

Commit

Permalink
#58: refactored shell to be accessible outside agent
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed May 27, 2013
1 parent 194b34f commit 28a564d
Show file tree
Hide file tree
Showing 35 changed files with 2,673 additions and 1,606 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package org.linkedin.glu.agent.cli
import org.linkedin.glu.agent.api.Agent
import org.linkedin.glu.agent.rest.client.AgentFactory
import org.linkedin.glu.agent.rest.client.AgentFactoryImpl
import org.linkedin.glu.groovy.utils.io.GluGroovyIOUtils
import org.linkedin.groovy.util.config.Config
import org.linkedin.groovy.util.state.StateMachine
import org.linkedin.util.lifecycle.Startable
Expand Down Expand Up @@ -168,7 +169,7 @@ class ClientMain implements Startable

InputStream mis = agent.streamCommandResults(args).stream

exitValue = AgentRestUtils.demultiplexExecStream(mis, System.out, System.err) as int
exitValue = GluGroovyIOUtils.demultiplexExecStream(mis, System.out, System.err) as int
}

boolean waitForCommandNoTimeOutException(Agent agent, def args)
Expand Down
1 change: 0 additions & 1 deletion agent/org.linkedin.glu.agent-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ dependencies {
runtime spec.external.ivy

testRuntime project(':utils:org.linkedin.glu.utils.log4j-test-config')
testRuntime spec.external.ivy
}

idea.module.iml {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package org.linkedin.glu.agent.impl.capabilities

import org.apache.tools.ant.taskdefs.Execute
import org.linkedin.glu.agent.api.ShellExecException
import org.linkedin.glu.commands.impl.StreamType
import org.linkedin.glu.groovy.utils.io.StreamType
import org.linkedin.glu.groovy.utils.GluGroovyLangUtils
import org.linkedin.glu.groovy.utils.io.InputGeneratorStream
import org.linkedin.glu.groovy.utils.json.GluGroovyJsonUtils
Expand Down
Loading

0 comments on commit 28a564d

Please sign in to comment.