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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57e0dc80ca8af0d8ffb64901553182956be06de4
4
- data.tar.gz: 47674fda6cbb673d5be6642d5b291093fa5de240
3
+ metadata.gz: 92445ff35302b2b1dd07d27a73691fd1350e9d1b
4
+ data.tar.gz: 00d2f4a74b10243d7ca7c0dbc35da9df143b488a
5
5
  SHA512:
6
- metadata.gz: 3dac295ce242278729cc17c41e9b20942bc5343a34062518c845a82d0753f6c5839775ef17f486232ab4231c165d74c8ee57dd18b4fb7579e68d44d9d5560408
7
- data.tar.gz: de5bdb018fb12c3275791a521f277217382f728f58231f5a822feb2e517bba0afb688d2c5b3dcc8d35be705c908fd6d437bccb07f5b83a92f9f6959fb6558bb1
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 = Dir.mktmpdir
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|
@@ -1,3 +1,3 @@
1
1
  module StellarCoreCommander
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellar_core_commander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Fleckenstein