epm 0.3.13 → 0.3.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/epm +6 -4
- data/lib/epm/version.rb +1 -1
- data/lib/epm.rb +6 -6
- 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: bf17803b86f7df75b3bf30b52b66f510ad5e557f
|
4
|
+
data.tar.gz: 232c2be0557e75d4fece75cc9c21405cfebc67b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d213279d55c6644497b8e474d5e16512271ff86a314fa931472c0e7896959ccdd5ac250117e04a5c9db7ea82c90f16245629a445b8b8fa905c34c36f2fce8c1e
|
7
|
+
data.tar.gz: a237a74163ce7093dbc8f0776a87c25818923bb9161fcf0e289ae8e4a7144f83c4ea2f9134bda2b6383ad7383a77b5ada1785380371f3014c6297228994119e6
|
data/bin/epm
CHANGED
@@ -92,9 +92,10 @@ end
|
|
92
92
|
command :start do |c|
|
93
93
|
c.syntax = 'epm start'
|
94
94
|
c.description = 'Start your default ethereum server.'
|
95
|
-
c.
|
95
|
+
c.option '-d', 'Increase verbosity of eth server.'
|
96
|
+
c.action do |args, opts|
|
96
97
|
print "Please be patient, this will take a few seconds.\n"
|
97
|
-
EPM.start
|
98
|
+
EPM.start opts
|
98
99
|
print "Server has started.\n"
|
99
100
|
end
|
100
101
|
end
|
@@ -111,9 +112,10 @@ end
|
|
111
112
|
command :restart do |c|
|
112
113
|
c.syntax = 'epm restart'
|
113
114
|
c.description = 'Restart your default ethereum server.'
|
114
|
-
c.
|
115
|
+
c.option '-d', 'Increase verbosity of eth server.'
|
116
|
+
c.action do |args, opts|
|
115
117
|
print "Please be patient, this will take a few seconds.\n"
|
116
|
-
EPM.restart
|
118
|
+
EPM.restart opts
|
117
119
|
print "Server has been restarted.\n"
|
118
120
|
end
|
119
121
|
end
|
data/lib/epm/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION ||= "0.3.
|
1
|
+
VERSION ||= "0.3.14"
|
data/lib/epm.rb
CHANGED
@@ -57,13 +57,13 @@ module EPM
|
|
57
57
|
def rpc args, opts
|
58
58
|
name = args.shift
|
59
59
|
arg_list = EPM::RPC.rpc_arg_list name
|
60
|
-
opt_vals = {
|
60
|
+
opt_vals = {
|
61
61
|
'a' => opts.a, 'x' => opts.x,'s' => opts.s, 'aDest' => opts.aDest,
|
62
62
|
'bData' => opts.bData, 'sec' => opts.sec, 'xGas' => opts.xGas,
|
63
63
|
'xGasPrice' => opts.xGasPrice, 'xValue' => opts.xValue,
|
64
64
|
'bCode' => opts.bCode,'xEndowment' => opts.xEndowment
|
65
65
|
}
|
66
|
-
params
|
66
|
+
params = EPM::RPC.rpc_from_args name, arg_list, args, opt_vals
|
67
67
|
return EPM::RPC.post_rpc_with_params name, params
|
68
68
|
end
|
69
69
|
|
@@ -71,17 +71,17 @@ module EPM
|
|
71
71
|
return VERSION
|
72
72
|
end
|
73
73
|
|
74
|
-
def start
|
75
|
-
EPM::Server.start
|
74
|
+
def start opts
|
75
|
+
EPM::Server.start opts.d
|
76
76
|
end
|
77
77
|
|
78
78
|
def stop
|
79
79
|
EPM::Server.stop
|
80
80
|
end
|
81
81
|
|
82
|
-
def restart
|
82
|
+
def restart opts
|
83
83
|
EPM::Server.stop
|
84
|
-
EPM::Server.start
|
84
|
+
EPM::Server.start opts.d
|
85
85
|
end
|
86
86
|
|
87
87
|
def setup
|