refactor: rename IPFS_DIR -> IPFS_PATH
closes #394 https://github.com/jbenet/go-ipfs/issues/394
Brian Tiger Chow committed
Jan 19, 2015 at 00:02 UTC
df9e6ce640fa4713640585f7a29a31d38691073a
4 files changed
+6
-6
repo/config/config.go
+1
-1
@@ -32,7 +32,7 @@ const (
32
// DefaultConfigFile is the filename of the configuration file
33
DefaultConfigFile = "config"
34
// EnvDir is the environment variable used to change the path root.
35
- EnvDir = "IPFS_DIR"
35
+ EnvDir = "IPFS_PATH"
36
)
37
38
// PathRoot returns the default configuration root directory
test/sharness/lib/test-lib.sh
+1
-1
@@ -67,7 +67,7 @@ test_wait_output_n_lines_60_sec() {
67
test_init_ipfs() {
68
69
test_expect_success "ipfs init succeeds" '
70
- export IPFS_DIR="$(pwd)/.go-ipfs" &&
70
+ export IPFS_PATH="$(pwd)/.go-ipfs" &&
71
ipfs init -b=1024 > /dev/null
72
'
73
test/sharness/t0020-init.sh
+2
-2
@@ -9,7 +9,7 @@ test_description="Test init command"
9
. lib/test-lib.sh
10
11
test_expect_success "ipfs init succeeds" '
12
- export IPFS_DIR="$(pwd)/.go-ipfs" &&
12
+ export IPFS_PATH="$(pwd)/.go-ipfs" &&
13
ipfs init >actual_init
14
'
15
@@ -35,7 +35,7 @@ test_expect_success "ipfs peer id looks good" '
35
36
test_expect_success "ipfs init output looks good" '
37
STARTHASH="QmYpv2VEsxzTTXRYX3PjDg961cnJE3kY1YDXLycHGQ3zZB" &&
38
- echo "initializing ipfs node at $IPFS_DIR" >expected &&
38
+ echo "initializing ipfs node at $IPFS_PATH" >expected &&
39
echo "generating key pair...done" >>expected &&
40
echo "peer identity: $PEERID" >>expected &&
41
printf "\\n%s\\n" "to get started, enter: ipfs cat $STARTHASH" >>expected &&
test/sharness/t0060-daemon.sh
+2
-2
@@ -13,7 +13,7 @@ test_description="Test daemon command"
13
14
# NOTE: this should remove bootstrap peers (needs a flag)
15
test_expect_success "ipfs daemon --init launches" '
16
- export IPFS_DIR="$(pwd)/.go-ipfs" &&
16
+ export IPFS_PATH="$(pwd)/.go-ipfs" &&
17
ipfs daemon --init 2>&1 >actual_init &
18
'
19
@@ -35,7 +35,7 @@ test_expect_success "ipfs peer id looks good" '
35
# note this is almost the same as t0020-init.sh "ipfs init output looks good"
36
test_expect_success "ipfs daemon output looks good" '
37
STARTHASH="QmYpv2VEsxzTTXRYX3PjDg961cnJE3kY1YDXLycHGQ3zZB" &&
38
- echo "initializing ipfs node at $IPFS_DIR" >expected &&
38
+ echo "initializing ipfs node at $IPFS_PATH" >expected &&
39
echo "generating key pair...done" >>expected &&
40
echo "peer identity: $PEERID" >>expected &&
41
echo "\nto get started, enter: ipfs cat $STARTHASH" >>expected &&