takelage 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/takelage/bit/scope/cli.rb +12 -0
- data/lib/takelage/bit/scope/module.rb +10 -0
- data/lib/takelage/default.yml +5 -5
- data/lib/takelage/version +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c4557b8751329204617243e1549062dce48e11853d1d395f60df6699125cc9b
|
4
|
+
data.tar.gz: c997a19ee1a62f314116f8afc8ae81f0547336ecb8e96fd523d41509777aeb44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed0c0f46b791f03bb63d97f6e447a9e012dec93f940827ddbf6acb661c8e8a51494ebc3a27f8452bcd2746aa82db25af2d0d927af431939010cff468d4732a7e
|
7
|
+
data.tar.gz: '0848f94cea6016d8ae9020564fe56805927600c7b7778310b10ab824a68b69141769de52e89c83d1d16087bb4907116b3e1db7c281403093eb4b83c3ea692f63'
|
data/README.md
CHANGED
@@ -53,6 +53,7 @@ tau [bit clipboard pull](features/takelage/bit/bit.clipboard.pull.feature) | Pul
|
|
53
53
|
tau [bit clipboard push](features/takelage/bit/bit.clipboard.push.feature) | Push all updates of bit components to bit remote scopes
|
54
54
|
tau [bit scope add](features/takelage/bit/bit.scope.add.feature) [SCOPE] | Add a bit [SCOPE]
|
55
55
|
tau [bit scope list](features/takelage/bit/bit.scope.list.feature) | List bit remote scopes
|
56
|
+
tau [bit scope inbit](features/takelage/bit/bit.scope.inbit.feature) | Log in to bit remote server
|
56
57
|
tau [bit scope new](features/takelage/bit/bit.scope.new.feature) [SCOPE] | Init a new bit [SCOPE]
|
57
58
|
tau [completion bash](features/takelage/completion/completion.bash.feature) | Print bash completion code
|
58
59
|
tau [docker check running](features/takelage/docker/docker.check.running.feature) | Check if docker daemon is running
|
@@ -54,5 +54,17 @@ module Takelage
|
|
54
54
|
say scopes unless scopes.to_s.strip.empty?
|
55
55
|
true
|
56
56
|
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# bit scope inbit
|
60
|
+
#
|
61
|
+
desc 'inbit', 'Log in to bit remote server'
|
62
|
+
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
63
|
+
Log in to bit remote server
|
64
|
+
LONGDESC
|
65
|
+
# Log in to bit remote server.
|
66
|
+
def inbit
|
67
|
+
exit bit_scope_inbit
|
68
|
+
end
|
57
69
|
end
|
58
70
|
end
|
@@ -37,6 +37,16 @@ module BitScopeModule
|
|
37
37
|
log.info "Added bit remote scope \"#{scope}\" to local bit workspace"
|
38
38
|
end
|
39
39
|
|
40
|
+
# Backend method for bit scope inbit.
|
41
|
+
def bit_scope_inbit
|
42
|
+
log.debug "Logging in to bit remote server"
|
43
|
+
|
44
|
+
return false unless configured? %w(bit_ssh)
|
45
|
+
|
46
|
+
cmd_bit_scope_login = config.active['bit_ssh']
|
47
|
+
run_and_exit cmd_bit_scope_login
|
48
|
+
end
|
49
|
+
|
40
50
|
# Backend method for bit scope list.
|
41
51
|
# @return [String] list of bit scopes
|
42
52
|
def bit_scope_list
|
data/lib/takelage/default.yml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
---
|
2
2
|
bit_add_dir: 'bit add --skip-update --id %{id} --main %{dir}/README.bit %{dir}'
|
3
|
-
bit_checkout_all: 'bit checkout --ignore-
|
3
|
+
bit_checkout_all: 'bit checkout --ignore-dist --skip-update --all latest'
|
4
4
|
bit_dev: 'takelage'
|
5
5
|
bit_export_to_scope: 'bit export --skip-update %{scope}'
|
6
|
-
bit_export_all: 'bit export --skip-update'
|
7
|
-
bit_import_all: 'bit import --
|
8
|
-
bit_import_cid: 'bit import --ignore-package-json --
|
6
|
+
bit_export_all: 'bit export --skip-update --all'
|
7
|
+
bit_import_all: 'bit import --ignore-package-json --ignore-dist --skip-update'
|
8
|
+
bit_import_cid: 'bit import --ignore-package-json --ignore-dist -p %{dir} %{cid}'
|
9
9
|
bit_list_remotes: 'bit remote --skip-update'
|
10
10
|
bit_list_scope: 'bit list --skip-update --json %{scope}'
|
11
11
|
bit_remote: ''
|
@@ -16,7 +16,7 @@ bit_scope_new: 'mkdir -p %{root}/%{scope} && cd %{root}/%{scope} && bit init -b'
|
|
16
16
|
bit_scope_remove: 'rm -fr %{root}/%{scope}'
|
17
17
|
bit_ssh: ''
|
18
18
|
bit_tag_id: 'bit tag --skip-update --skip-tests %{id}'
|
19
|
-
bit_tag_all: 'bit tag --all'
|
19
|
+
bit_tag_all: 'bit tag --skip-update --skip-tests --all'
|
20
20
|
docker_debug: 'ansible/roles/takel-takelage/files/pyscripts'
|
21
21
|
docker_image: 'takelage'
|
22
22
|
docker_info: 'docker info'
|
data/lib/takelage/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.9.0
|