ssport 0.1.8 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fdf5b7f14e5e5682ef44f437055e9507433191e96905f90317c7e29b3e2a803
4
- data.tar.gz: 8e6768fecab47ee6e73c39968df7eb9c5d03e5833e7ccc2b5744e2c629f7237b
3
+ metadata.gz: 0d93c3b4dcefc0328486247025c567371c15c34640430974bb271bd61a781051
4
+ data.tar.gz: 771ad0d1d6bc99dd9b2f2b180f79b2f5e3127c7b72a84c64dfb82483c9f494b9
5
5
  SHA512:
6
- metadata.gz: 1c25866808b1c3a3804169fc91cc11ee26d1d0aa6cc0907b4fadeee5da37e74c582f8e8dc86404bf8b3c7d8f75242088bb38fd7a4a6bbd83c3eeed3da35ceb2e
7
- data.tar.gz: 982ce12f208bc8712aaf3177615fca6007de945a4ac708fff74203eb3e50a3ca87bbeb4e885126840b5f3e53062d6dae0b15e9eabd849a5c8df2408a4c0b85fc
6
+ metadata.gz: '022218f878bfb895de06ffc27ec4de4f7f4ef26740a87dbcb21e060321c9e032ea436964ec79f5c4e9d5ea38b206bd648a99d16b1e4a5f22f08cf773bb7e7a62'
7
+ data.tar.gz: f50cc46040b765a7b1200dbcce41bb1959afa79c3460f2651578605477ed1ec427c2b1037f2fb947af9bee2e0409fa6f1edfe521f5ace238e496ffdcff604a9a
data/lib/ssport/config.rb CHANGED
@@ -21,14 +21,14 @@ class Config
21
21
  end
22
22
 
23
23
  def parseConfig
24
- p "---------bengin parse #{@config_file} ------------".colorize(:yellow)
24
+ puts "---------bengin parse #{@config_file} ------------".colorize(:yellow)
25
25
  if File.exist? @config_file
26
26
  file_content = File.read @config_file
27
27
  @config_json = JSON.parse file_content
28
- p "-------------old config---------------".colorize(:yellow)
29
- p JSON.pretty_generate(@config_json)
28
+ puts "-------------old config---------------".colorize(:yellow)
29
+ puts JSON.pretty_generate(@config_json)
30
30
  else
31
- p "Config 文件不存在".colorize(:red)
31
+ puts "Config 文件不存在".colorize(:red)
32
32
  end
33
33
  end
34
34
 
@@ -44,8 +44,8 @@ class Config
44
44
  changeField @@PASSWORD , :password
45
45
  changeField @@METHOD , :method
46
46
  final_config = JSON.pretty_generate(@config_json)
47
- p "-------------new config---------------".colorize(:yellow)
48
- p final_config
47
+ puts "-------------new config---------------".colorize(:yellow)
48
+ puts final_config
49
49
  File.write @config_file , final_config
50
50
  end
51
51
 
@@ -1,3 +1,3 @@
1
1
  module Ssport
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
data/lib/ssport.rb CHANGED
@@ -64,13 +64,14 @@ module Ssport
64
64
  gem install ssport
65
65
  fi
66
66
  ssport -b #{options[:port]} -c #{options[:config]}
67
+ ssserver -c #{options[:config]}
67
68
  }
68
69
  output = ssh.exec!(script)
69
70
  end
70
71
 
71
- p '----------------Remote---------------'.colorize(:yellow)
72
+ puts '----------------Remote---------------'.colorize(:yellow)
72
73
  puts output
73
- p '-------------------------------------'.colorize(:yellow)
74
+ puts '------------------End------------------'.colorize(:yellow)
74
75
 
75
76
  end
76
77
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaich