mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
Auto-merge for PR #717 via VersionBot
Remove resin promote command (which has never worked) to wait for larger resinOS provisioning updates
This commit is contained in:
commit
2a2d621d6a
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
|
||||
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## v6.8.3 - 2017-11-16
|
||||
|
||||
* Remove resin promote command (which has never worked) to wait for larger resinOS provisioning updates #717 [Tim Perry]
|
||||
|
||||
## v6.8.2 - 2017-11-14
|
||||
|
||||
* Fix 'cannot read property R_OK of undefined' error in Node >=6 <6.3 #713 [Tim Perry]
|
||||
|
@ -21,8 +21,6 @@ exports.flash = require('./flash');
|
||||
|
||||
exports.logs = require('./logs');
|
||||
|
||||
exports.promote = require('./promote');
|
||||
|
||||
exports.scan = require('./scan');
|
||||
|
||||
exports.ssh = require('./ssh');
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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')
|
||||
|
@ -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)
|
@ -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)
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "resin-cli",
|
||||
"version": "6.8.2",
|
||||
"version": "6.8.3",
|
||||
"description": "The official resin.io CLI tool",
|
||||
"main": "./build/actions/index.js",
|
||||
"homepage": "https://github.com/resin-io/resin-cli",
|
||||
|
Loading…
Reference in New Issue
Block a user