Remove resin promote command (which has never worked) to wait for larger resinOS provisioning updates

This would be a major change if the command was ever successful, but it
appears it hasn't ever worked for any available published version of
ResinOS, so it's not possible that there are users relying on it.

Change-Type: patch
This commit is contained in:
Tim Perry 2017-11-15 14:46:22 +01:00
parent 6562eb544c
commit 1fafe64579
6 changed files with 0 additions and 112 deletions

View File

@ -21,8 +21,6 @@ exports.flash = require('./flash');
exports.logs = require('./logs');
exports.promote = require('./promote');
exports.scan = require('./scan');
exports.ssh = require('./ssh');

View File

@ -216,8 +216,6 @@ capitano.command(actions.local.flash);
capitano.command(actions.local.logs);
capitano.command(actions.local.promote);
capitano.command(actions.local.push);
capitano.command(actions.local.ssh);

View File

@ -134,7 +134,6 @@ environment variable (in the same standard URL format).
- [local configure <target>](#local-configure-60-target-62-)
- [local flash <image>](#local-flash-60-image-62-)
- [local logs [deviceIp]](#local-logs-deviceip-)
- [local promote [deviceIp]](#local-promote-deviceip-)
- [local scan](#local-scan)
- [local ssh [deviceIp]](#local-ssh-deviceip-)
- [local push [deviceIp]](#local-push-deviceip-)
@ -1209,33 +1208,6 @@ follow log
name of container to get logs from
## local promote [deviceIp]
Warning: 'resin promote' requires an openssh-compatible client to be correctly
installed in your shell environment. For more information (including Windows
support) please check the README here: https://github.com/resin-io/resin-cli
Use this command to promote your device.
Promoting a device will provision it onto the Resin platform,
converting it from an unmanaged device to a managed device.
Examples:
$ resin local promote
$ resin local promote --port 22222
$ resin local promote --verbose
### Options
#### --verbose, -v
increase verbosity
#### --port, -p <port>
ssh port number (default: 22222)
## local scan

View File

@ -17,7 +17,6 @@ limitations under the License.
exports.configure = require('./configure')
exports.flash = require('./flash')
exports.logs = require('./logs')
exports.promote = require('./promote')
exports.scan = require('./scan')
exports.ssh = require('./ssh')
exports.push = require('./push')

View File

@ -1,78 +0,0 @@
###
Copyright 2017 Resin.io
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
###
module.exports =
signature: 'local promote [deviceIp]'
description: 'Promote a resinOS device'
help: '''
Warning: 'resin promote' requires an openssh-compatible client to be correctly
installed in your shell environment. For more information (including Windows
support) please check the README here: https://github.com/resin-io/resin-cli
Use this command to promote your device.
Promoting a device will provision it onto the Resin platform,
converting it from an unmanaged device to a managed device.
Examples:
$ resin local promote
$ resin local promote --port 22222
$ resin local promote --verbose
'''
options: [
signature: 'verbose'
boolean: true
description: 'increase verbosity'
alias: 'v'
,
signature: 'port'
parameter: 'port'
description: 'ssh port number (default: 22222)'
alias: 'p'
]
root: true
action: (params, options, done) ->
child_process = require('child_process')
Promise = require 'bluebird'
_ = require('lodash')
{ forms } = require('resin-sync')
{ getSubShellCommand } = require('./common')
options.port ?= 22222
verbose = if options.verbose then '-vvv' else ''
Promise.try ->
return params.deviceIp ?= forms.selectLocalResinOsDevice()
.then (deviceIp) ->
_.assign(options, { deviceIp })
command = "ssh \
#{verbose} \
-t \
-p #{options.port} \
-o LogLevel=ERROR \
-o StrictHostKeyChecking=no \
-o UserKnownHostsFile=/dev/null \
root@#{options.deviceIp} \
-- \"resin-provision interactive\""
subShellCommand = getSubShellCommand(command)
child_process.spawn subShellCommand.program, subShellCommand.args,
stdio: 'inherit'
.nodeify(done)

View File

@ -193,7 +193,6 @@ capitano.command(actions.ssh)
capitano.command(actions.local.configure)
capitano.command(actions.local.flash)
capitano.command(actions.local.logs)
capitano.command(actions.local.promote)
capitano.command(actions.local.push)
capitano.command(actions.local.ssh)
capitano.command(actions.local.scan)