epm 0.3.13 → 0.3.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/epm +6 -4
  3. data/lib/epm/version.rb +1 -1
  4. data/lib/epm.rb +6 -6
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07376fe94512302f5215b0ce7503d1375fcf2da2
4
- data.tar.gz: 20810050fa8b49a431ad26a6a96698e33b282544
3
+ metadata.gz: bf17803b86f7df75b3bf30b52b66f510ad5e557f
4
+ data.tar.gz: 232c2be0557e75d4fece75cc9c21405cfebc67b7
5
5
  SHA512:
6
- metadata.gz: e85fd5264e1ef41c367cacae5c369f85c8416ab43f6cb9af7a407e64061851719d49979993248d21633a11d11a557b4cc2342d2257dd894846a487952d05e59f
7
- data.tar.gz: d1672a7a2599c4ffbe57b24e99c0a909945260767da3f8372efa27041636a50a6da9b233abea9a4e737fd7b87fd0e52432a2153f4115484fb6e6f5dfa2b75c9d
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.action do
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.action do
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.13"
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 = { # `opts.instance_variable_get` doesnt seem to work, nor `opts.send`
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 = EPM::RPC.rpc_from_args name, arg_list, args, opt_vals
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Casey Kuhlman