clockker 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clockker/version.rb +1 -1
- data/lib/clockker/watcher.rb +7 -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: 60febb5ab25ebb2bbd8beb19013b4e54ac48755a9c7255b87bfa2c6ebdfad55b
|
4
|
+
data.tar.gz: 770b3c91268b9d6ed4f4e6cbd855d6c7bd5acfb2588139992f64b7a098f08e7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a2d56cca5f1620347090554a82ff033398bf7765dec45150b22db04cec73f2bb689aa609f1a75f7d432959ce579aef521b4229d45a84d1bdf5e3708efbc93d5
|
7
|
+
data.tar.gz: 5cdebc5439bd5bef35f9d4d9bc555fdfa76fcec32d94db78d08ba1e22a84501abebe5c74fe7ef5de7f43abf2828178b0c56fa553c244bb495a35735d0918ae39
|
data/lib/clockker/version.rb
CHANGED
data/lib/clockker/watcher.rb
CHANGED
@@ -77,7 +77,13 @@ module Clockker
|
|
77
77
|
end
|
78
78
|
|
79
79
|
begin
|
80
|
-
|
80
|
+
data = {artifacts: @changeset.map{|c| {file_path: c[:filepath], touched_at: c[:created_at].strftime("%Y-%m-%d %H:%M:%S"), identifier: identifier, agent: Clockker.version}}}.to_json
|
81
|
+
header = {"Authorization" => "Bearer #{token}", "Content-Type" => "application/json"}
|
82
|
+
|
83
|
+
Net::HTTP.start(clockk_agent_uri.hostname, clockk_agent_uri.port, use_ssl: clockk_agent_uri.scheme == 'https') do |http|
|
84
|
+
http.post(clockk_agent_uri.path, data, header)
|
85
|
+
end
|
86
|
+
|
81
87
|
@changeset = []
|
82
88
|
rescue Exception => e
|
83
89
|
logger.info "#{Time.now} Reached exception #{e}"
|