agent_smith 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/agent_smith.rb +6 -3
- data/lib/agent_smith/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4407258f1df8c2605fa6ae6b405014190329440f
|
4
|
+
data.tar.gz: 09b5eaca3f172ff9a7b515a3bb1a279ecfd006f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d28264208dd22d9dcbd5cd9bc573a07f10f86af9daad222aa1bd71521554a528bbcc3ee315c73c603ea0bc336f28b367d631c118e22e43ef219784edbc3ff61
|
7
|
+
data.tar.gz: ba0b5ac28a9cfbe26f358332dac228a3b20c6dd08a21d20f9b5be350066bcda2e743a5ac1b2b52b3e5a5fa56e0830426b66106ab645984aae4f1276ccb1a6d31
|
data/lib/agent_smith.rb
CHANGED
@@ -30,17 +30,19 @@ profiles present in the given repository.
|
|
30
30
|
LONGDESC
|
31
31
|
|
32
32
|
option :repo, :required => true
|
33
|
+
option :temp_dir
|
34
|
+
|
33
35
|
def install
|
34
36
|
|
35
37
|
delete_all
|
36
38
|
|
37
|
-
Dir.mktmpdir do
|
39
|
+
Dir.chdir (options[:temp_dir] || Dir.mktmpdir) do
|
38
40
|
|
39
41
|
system "mkdir -p #{PROVISIONING_PATH.gsub(" ","\\ ")}"
|
40
|
-
system "git clone #{options[:repo]}
|
42
|
+
system "git clone #{options[:repo]} repo &> /dev/null"
|
41
43
|
certificate = open(APPLE_ROOT_CERTIFICATE_URL).read()
|
42
44
|
|
43
|
-
prov_profiles = Dir["
|
45
|
+
prov_profiles = Dir["repo/**/**.mobileprovision"]
|
44
46
|
puts "#{prov_profiles.count} provisioning profiles found"
|
45
47
|
|
46
48
|
prov_profiles.each do |prov_profile|
|
@@ -66,6 +68,7 @@ LONGDESC
|
|
66
68
|
|
67
69
|
end
|
68
70
|
end
|
71
|
+
|
69
72
|
end
|
70
73
|
|
71
74
|
end
|
data/lib/agent_smith/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agent_smith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Querella
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|