Permalink
Browse files

Refactoring.

  • Loading branch information...
hekonsek authored and Ricardo M Oliveira committed Mar 16, 2016
1 parent f5a11cb commit 6c7ecd9bcf1916022b9902f5abbd4bf6a776b65c
@@ -17,9 +17,9 @@
package com.github.camellabs.iot.performance
import com.fasterxml.jackson.databind.ObjectMapper
-import io.rhiot.deployer.ConsoleInformation
-import io.rhiot.deployer.Cmd
-import io.rhiot.deployer.DeployerBuilder
+import io.rhiot.cmd.ConsoleInformation
+import io.rhiot.cmd.Cmd
+import io.rhiot.cmd.DeployerBuilder
import static HardwareKit.RPI2
import static java.util.concurrent.TimeUnit.MINUTES
@@ -16,7 +16,7 @@
*/
package com.github.camellabs.iot.performance
-import io.rhiot.deployer.ConsoleInformation
+import io.rhiot.cmd.ConsoleInformation
import org.junit.Assert
import org.junit.Test
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package io.rhiot.deployer
+package io.rhiot.cmd
import groovy.transform.PackageScope
import io.rhiot.scanner.Device
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package io.rhiot.deployer
+package io.rhiot.cmd
interface Command {
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package io.rhiot.deployer
+package io.rhiot.cmd
class ConsoleInformation extends RuntimeException {
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package io.rhiot.deployer
+package io.rhiot.cmd
import static java.util.Optional.empty
import static java.util.Optional.of
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package io.rhiot.deployer
+package io.rhiot.cmd
import io.rhiot.scanner.DeviceDetector
import io.rhiot.scanner.SimplePortScanningDeviceDetector
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package io.rhiot.deployer
+package io.rhiot.cmd
import org.apache.commons.io.IOUtils
import org.apache.commons.lang3.SystemUtils
@@ -16,6 +16,10 @@
*/
package io.rhiot.deployer
+import io.rhiot.cmd.Cmd
+import io.rhiot.cmd.ConsoleInformation
+import io.rhiot.cmd.ConsoleInputParser
+import io.rhiot.cmd.DeployerBuilder
import io.rhiot.scanner.DeviceDetector
import org.junit.Assert
import org.junit.Test
@@ -16,6 +16,9 @@
*/
package io.rhiot.deployer
+import io.rhiot.cmd.ConsoleInformation
+import io.rhiot.cmd.ConsoleInputParser
+
import static com.google.common.truth.Truth.assertThat
import org.junit.Assert
@@ -19,7 +19,7 @@ package io.rhiot.cmd
class Cmd {
static void main(String... args) {
- io.rhiot.deployer.Cmd.main(args)
+ Cmd.main(args)
}
}
@@ -16,7 +16,7 @@
*/
package io.rhiot.tooling.shell.commands
-import io.rhiot.deployer.DownloadManager
+import io.rhiot.cmd.DownloadManager
import io.rhiot.tooling.shell.SshCommandSupport
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
@@ -16,7 +16,7 @@
*/
package io.rhiot.tooling.shell.commands
-import io.rhiot.deployer.DownloadManager
+import io.rhiot.cmd.DownloadManager
import io.rhiot.utils.WithLogger
import io.rhiot.utils.process.ProcessManager
import org.apache.commons.io.IOUtils

0 comments on commit 6c7ecd9

Please sign in to comment.