stellar_core_commander 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -0
- data/lib/stellar_core_commander/commander.rb +3 -2
- data/lib/stellar_core_commander/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92445ff35302b2b1dd07d27a73691fd1350e9d1b
|
4
|
+
data.tar.gz: 00d2f4a74b10243d7ca7c0dbc35da9df143b488a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5685616a9700bb4fa092d391be34fdd0915a7ddc37950eb99083ac485545769ca5d53aba1f5f80975caafb8be6a9054d15f30b1694ad6fadcaf4cee254c46e81
|
7
|
+
data.tar.gz: b60e6f66d0904aedc4c725484e8dd32518e5a55f2fbc19521fdc70a1d888da4e15dd3e9303009cb7b26149f1e10a03c8a9f632c4bda56f7a96cd97591bf85405
|
data/README.md
CHANGED
@@ -22,6 +22,18 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
$ gem install stellar_core_commander
|
24
24
|
|
25
|
+
## Assumptions about environment
|
26
|
+
|
27
|
+
At present `scc` makes a few assumptions about the environment it runs in that you should be aware. In the event that your own environment differs from the below assumptions, `scc` will definitely break.
|
28
|
+
|
29
|
+
1. Postgresql is installed locally and `pg_dump`, `createdb` and `dropdb` are available on your PATH
|
30
|
+
2. The `which` command is available on your system.
|
31
|
+
3. Postgresql is running and the current user has passwordless access to it. Running `psql postgres -c "\l"` should confirm you're setup correctly.
|
32
|
+
4. Your current user has access to create and drop postgres databases. Test using: `createdb foobar && dropdb foobar`
|
33
|
+
5. A working `stellar-core` binary is available on your path (or specified using the `--stellar-core-bin` flag)
|
34
|
+
6. Your system has libsodium installed
|
35
|
+
|
36
|
+
|
25
37
|
## Usage As Command Line Tool
|
26
38
|
|
27
39
|
Installing `stellar_core_commander` installs the command line tool `scc`. `scc`
|
@@ -16,9 +16,10 @@ module StellarCoreCommander
|
|
16
16
|
|
17
17
|
Contract None => Process
|
18
18
|
def make_process
|
19
|
-
tmpdir
|
19
|
+
tmpdir = Dir.mktmpdir("scc")
|
20
|
+
|
20
21
|
identity = Stellar::KeyPair.random
|
21
|
-
base_port = 39132
|
22
|
+
base_port = 39132 + (@processes.length * 2)
|
22
23
|
|
23
24
|
FileUtils.cp(@stellar_core_bin, "#{tmpdir}/stellar-core")
|
24
25
|
Process.new(tmpdir, base_port, identity).tap do |p|
|