m2m 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/exe/m2m +7 -0
- data/lib/product.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: 31322a0d78eedd740b65b1f8aa638f40ca1e6b30
|
|
4
|
+
data.tar.gz: 5c0baf488d7f7209cae678fc619385269227b9e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42aece983d0a02831a621112469170d085c4bd79d8b8c12056e8cab34b4db111b2e3c634075d4b8d0a86eba8fa510dc4a4fb5997b984381c5d2eee618b5e1b57
|
|
7
|
+
data.tar.gz: 2b7365ae89481ff9fa5e5b164f26d192d97bfe761d941d53282be3ed3cbef87c5063a5577c7b9f86626b05b05881f72604c0d2fbe811d1f58fce808c4bad0557
|
data/exe/m2m
CHANGED
|
@@ -9,6 +9,7 @@ require_relative './mailer'
|
|
|
9
9
|
require_relative './setup'
|
|
10
10
|
require_relative './server'
|
|
11
11
|
require_relative '../lib/product'
|
|
12
|
+
require_relative './init'
|
|
12
13
|
|
|
13
14
|
class Application
|
|
14
15
|
include Commander::Methods
|
|
@@ -17,6 +18,7 @@ class Application
|
|
|
17
18
|
include MailCommand
|
|
18
19
|
include ServerCommand
|
|
19
20
|
include SetupCommand
|
|
21
|
+
include InitCommand
|
|
20
22
|
|
|
21
23
|
def run
|
|
22
24
|
program :name, M2M::NAME
|
|
@@ -44,6 +46,11 @@ class Application
|
|
|
44
46
|
self.setup c
|
|
45
47
|
end
|
|
46
48
|
|
|
49
|
+
#配置相关
|
|
50
|
+
command :init do |c|
|
|
51
|
+
self.init c
|
|
52
|
+
end
|
|
53
|
+
|
|
47
54
|
run!
|
|
48
55
|
end
|
|
49
56
|
end
|
data/lib/product.rb
CHANGED