Skip to content

Commit

Permalink
Cleanup & Rename (#2)
Browse files Browse the repository at this point in the history
- components/drivers/driver-X to components/machine/driver-X
  • Loading branch information
vincent99 committed Apr 23, 2016
1 parent d2e20c0 commit 64bb9b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Skeleton Rancher UI driver for custom docker-machine drivers
This package contains a small web-server that will serve up the custom driver UI at `https://localhost:3000/component.js`. You can run this while developing and point the Rancher settings there.
* `npm start`
* The driver name can be optionally overridden: `npm start -- --name=DRIVERNAME`
* The compiled files are viewable at `https://localhost:3000`.
* The compiled files are viewable at http://localhost:3000.
* **Note:** The development server does not currently automatically restart when files are changed.

## Building
Expand All @@ -25,7 +25,6 @@ For other users to see your driver, you need to build it and host the output on
* `npm build`
* Copy the contents of the `dist` directory onto a webserver.
* If your Rancher is configured to use HA or SSL, the server must also be available via HTTPS.
* If your driver is public, [GitHub release binaries](https://help.github.com/articles/about-releases/) are a simple hosting choice.

## Using

Expand Down
4 changes: 2 additions & 2 deletions component/component.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* v----- Do not change anything between here
* (the DRIVERNAME placeholder will be automatically replaced during build) */
define('ui/components/drivers/driver-%%DRIVERNAME%%/component', ['exports', 'ember', 'ui/mixins/driver'], function (exports, _ember, _uiMixinsDriver) {
define('ui/components/machine/driver-%%DRIVERNAME%%/component', ['exports', 'ember', 'ui/mixins/driver'], function (exports, _ember, _uiMixinsDriver) {

exports['default'] = _ember['default'].Component.extend(_uiMixinsDriver['default'], {
driverName: 'driver-%%DRIVERNAME%%',
driverName: '%%DRIVERNAME%%',
/* ^--- And here */

// Write your component here, starting with setting 'model' to a machine with your config populated
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ gulp.task('compiled', ['js'], function() {
deps: ['exports', 'ember', 'ui/mixins/driver'],
params: ['exports', '_ember', '_uiMixinsDriver'],
moduleRoot: 'component/',
modulePrefix: 'ui/components/drivers/driver-' + DRIVER_NAME + '/'
modulePrefix: 'ui/components/machine/driver-' + DRIVER_NAME + '/'
}))
.pipe(replace(
"return Ember.TEMPLATES['template']", 'exports["default"]'
Expand Down

0 comments on commit 64bb9b0

Please sign in to comment.