utsup 0.0.7 → 0.0.8
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.
- data.tar.gz.sig +2 -2
- data/lib/sup.rb +8 -7
- metadata +1 -1
- metadata.gz.sig +1 -1
data.tar.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
�
|
|
1
|
+
�����ŝ �aXQ�uFD�e�S
|
|
2
|
+
(�ץ%r����6=� 9l�X�֠ȱ��)J�
|
data/lib/sup.rb
CHANGED
|
@@ -6,7 +6,7 @@ require 'yaml'
|
|
|
6
6
|
require 'git'
|
|
7
7
|
|
|
8
8
|
module Sup
|
|
9
|
-
VERSION = '0.0.
|
|
9
|
+
VERSION = '0.0.8'
|
|
10
10
|
GIT_HOOKS = %w(post-commit post-receive post-merge post-checkout) #TODO: post-rebase?
|
|
11
11
|
|
|
12
12
|
GLOBAL_CONFIG_PATH = '~/.utsup'
|
|
@@ -78,7 +78,7 @@ eos
|
|
|
78
78
|
|
|
79
79
|
project_config_path = File.join(Dir.pwd, PROJECT_CONFIG_PATH)
|
|
80
80
|
|
|
81
|
-
project_config = YAML.load_file(project_config_path)
|
|
81
|
+
project_config = YAML.load_file(project_config_path) rescue {}
|
|
82
82
|
project_config["project_id"] = project.id
|
|
83
83
|
File.open(project_config_path,'w'){|f| YAML.dump( project_config, f )}
|
|
84
84
|
|
|
@@ -100,7 +100,7 @@ eos
|
|
|
100
100
|
global_config = YAML.load_file(global_config_path)
|
|
101
101
|
|
|
102
102
|
project_config_path = File.join(Dir.pwd, PROJECT_CONFIG_PATH)
|
|
103
|
-
project_config = YAML.load_file(project_config_path)
|
|
103
|
+
project_config = YAML.load_file(project_config_path) rescue {}
|
|
104
104
|
|
|
105
105
|
# --- configure API
|
|
106
106
|
Api::Base.project_id = project_config['project_id']
|
|
@@ -267,13 +267,10 @@ eos
|
|
|
267
267
|
class << self
|
|
268
268
|
def run(command, args)
|
|
269
269
|
|
|
270
|
+
# no configure
|
|
270
271
|
case command
|
|
271
272
|
when "setup":
|
|
272
273
|
return Sup::setup
|
|
273
|
-
when "init":
|
|
274
|
-
Sup::init args.first
|
|
275
|
-
puts "Supified!"
|
|
276
|
-
return
|
|
277
274
|
end
|
|
278
275
|
|
|
279
276
|
Sup::configure
|
|
@@ -285,6 +282,10 @@ eos
|
|
|
285
282
|
|
|
286
283
|
when "version":
|
|
287
284
|
puts VERSION
|
|
285
|
+
|
|
286
|
+
when "init":
|
|
287
|
+
Sup::init args.first
|
|
288
|
+
puts "Supified!"
|
|
288
289
|
|
|
289
290
|
when "in":
|
|
290
291
|
Sup::check_in args.last
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
�6v�j8����Q8��a=�`� )kO蒀p�������?�hѹl�u9 "�Н��пä�馩@x[������BWb�Q��/X��}ێIF�ŀ��e[�h�?��atJ��3$69b��wS!�0���V8y&"d�ɛ�??5�X��+ �B��( w��`���:��#9�������|jN�ظ[�l#���0�荳F ���ˀϜ)[�eW?������0Å�2y��b%6�+���p�w;gg)
|