Skip to content

Commit

Permalink
fix: update deps and code to match up to latest ipfs-api
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Nov 13, 2016
1 parent 0889197 commit a35f606
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/cli/bin.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#! /usr/bin/env node
'use strict'

var ronin = require('ronin')
const ronin = require('ronin')

var cli = ronin(__dirname)
const cli = ronin(__dirname)

// cli.autoupdate(() => {
cli.run()
Expand Down
6 changes: 4 additions & 2 deletions src/cli/commands/browse.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var Command = require('ronin').Command
var fs = require('fs')
var path = require('path')
Expand All @@ -14,9 +16,9 @@ module.exports = Command.extend({
if (version) {
return browse(version)
}

var configPath
try {
var configPath = path.resolve(process.cwd() + '/ipscend.json')
configPath = path.resolve(process.cwd() + '/ipscend.json')
fs.statSync(configPath)
browse(lastVersion())
} catch (err) {
Expand Down
2 changes: 2 additions & 0 deletions src/cli/commands/init.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var Command = require('ronin').Command
var fs = require('fs')
var ask = require('asking').ask
Expand Down
2 changes: 2 additions & 0 deletions src/cli/commands/ipfs/start.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const fs = require('fs')
const ipfsd = require('ipfsd-ctl')
const os = require('os')
Expand Down
5 changes: 4 additions & 1 deletion src/cli/commands/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var Command = require('ronin').Command
var fs = require('fs')
var path = require('path')
Expand All @@ -16,8 +18,9 @@ module.exports = Command.extend({
},

run: function (port, name) {
var configPath
try {
var configPath = path.resolve(process.cwd() + '/ipscend.json')
configPath = path.resolve(process.cwd() + '/ipscend.json')
fs.statSync(configPath)
preview()
} catch (err) {
Expand Down
5 changes: 4 additions & 1 deletion src/cli/commands/screenshot.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var Command = require('ronin').Command
var fs = require('fs')
var path = require('path')
Expand All @@ -13,8 +15,9 @@ module.exports = Command.extend({
},

run: function (gen, name) {
var configPath
try {
var configPath = path.resolve(process.cwd() + '/ipscend.json')
configPath = path.resolve(process.cwd() + '/ipscend.json')
fs.statSync(configPath)
snapshot()
} catch (err) {
Expand Down
5 changes: 4 additions & 1 deletion src/cli/commands/versions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var Command = require('ronin').Command
var fs = require('fs')
var path = require('path')
Expand All @@ -6,8 +8,9 @@ module.exports = Command.extend({
desc: 'Check each version published',

run: function (name) {
var configPath
try {
var configPath = path.resolve(process.cwd() + '/ipscend.json')
configPath = path.resolve(process.cwd() + '/ipscend.json')
fs.statSync(configPath)
publish()
} catch (err) {
Expand Down
1 change: 1 addition & 0 deletions test/index.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'use strict'

0 comments on commit a35f606

Please sign in to comment.