pindo 4.9.1 → 4.9.3

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.
@@ -1,56 +0,0 @@
1
-
2
- require 'fileutils'
3
-
4
- module Pindo
5
- class Command
6
- class Upgrade < Command
7
-
8
- self.summary = '更新pindo'
9
-
10
- self.description = <<-DESC
11
- 更新pindo版本,用法: pindo upgrade
12
- DESC
13
-
14
- self.arguments = [
15
-
16
- ]
17
-
18
- def self.options
19
- [
20
-
21
- ].concat(super)
22
- end
23
-
24
- def initialize(argv)
25
- super(argv)
26
- @additional_args = argv.remainder!
27
- end
28
-
29
- def validate!
30
- super
31
- end
32
-
33
- def run
34
-
35
- puts "正在更新pindo..."
36
- command = '/bin/bash -c "$(curl -fsSL https://gitee.com/goodbuildtest/env/raw/master/pindo_upgrade.sh)"'
37
- puts "正在运行脚本: #{command}"
38
- system command
39
- # clone_pindo_common_config_repo(force_delete: false)
40
- # clone_pindo_env_config_repo(force_delete: false)
41
-
42
- # commands = [
43
- # "sudo gem update pindo",
44
- # "sudo gem cleanup"
45
- # ]
46
-
47
- # commands.each do |command|
48
- # puts "正在执行 #{command} ..."
49
- # system command
50
- # end
51
- # puts "pindo 已更新到最新版本!"
52
- end
53
-
54
- end
55
- end
56
- end