chef-telemetry 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: faf29c758b1dbcddd569962312d55a7f9b7648ac2fed2896a962360f62d50b93
4
- data.tar.gz: '079575327ecc06c86e9fb305cd4e0b6339ea443ad53800006f74baa710d9f266'
3
+ metadata.gz: 951106fab84f344b20c55bc404f20d9bb2a95cb01a72932601760fd631b2057d
4
+ data.tar.gz: '08e2823c213708756f6ba4928391fdea3b1ed31d3788d4c77fc949f978baf81e'
5
5
  SHA512:
6
- metadata.gz: 35a60bfa480f9085eac39bd3f1699ab2926f1c270e947439c13bfbc585e97849b5cb155bf8eaadef41496fc0a62c13867dc25b3380ece12d1460e84fee8794aa
7
- data.tar.gz: 4bd4017b173ba7a50f5888550c16e1b0616c0a2b6176ba719513bad27ece43ce32dca9208ad7a891e519e3d957e64c26ce8ef56e20ca2eace83383c743b81592
6
+ metadata.gz: 61c52d92b225a46f7657c3527fc2a38f30e1a0d28e144e6f90530a52616217d84e9297c03c50065ecc5a1c94c557d493f64ed262d5727a2647a4112c2ddedb84
7
+ data.tar.gz: a46f56f408161b1ed0962266aa31433d5378d1d811c1652bec1173f5c488a1b4f55fcd4d615950f9cae98e44626aa7195c2bb3c2aa40b63c37081299dbea650b
@@ -24,7 +24,7 @@ require "digest/sha1"
24
24
  require "securerandom"
25
25
  require "yaml"
26
26
 
27
- module Chef
27
+ class Chef
28
28
  # This definites the Telemeter interface. Implementation thoughts for
29
29
  # when we unstub it:
30
30
  # - let's track the call sequence; most of our calls will be nested inside
@@ -19,7 +19,7 @@ require "chef/telemetry"
19
19
  require "chef/telemeter"
20
20
  require "logger"
21
21
 
22
- module Chef
22
+ class Chef
23
23
  class Telemeter
24
24
  logger = ::Logger.new(STDERR) # TODO: maybe switch to file, maybe switch to mixlib
25
25
  logger.level = Logger::ERROR
@@ -4,7 +4,7 @@ require "chef/telemetry/event"
4
4
  require "chef/telemetry/session"
5
5
  require "chef/telemetry/version"
6
6
 
7
- module Chef
7
+ class Chef
8
8
  class Telemetry
9
9
  attr_accessor :product, :origin, :product_version, :install_context
10
10
  def initialize(product: nil, origin: "command-line",
@@ -1,7 +1,7 @@
1
1
  require "http"
2
2
  require "concurrent"
3
3
 
4
- module Chef
4
+ class Chef
5
5
  class Telemetry
6
6
  class Client
7
7
  include Concurrent::Async
@@ -2,7 +2,7 @@ require "chef-config/path_helper"
2
2
  require "chef-config/windows"
3
3
 
4
4
  # Decision allows us to inspect whether the user has made a decision to opt in or opt out of telemetry.
5
- module Chef
5
+ class Chef
6
6
  class Telemetry
7
7
  module Decision
8
8
  OPT_OUT_FILE = "telemetry_opt_out".freeze
@@ -1,4 +1,4 @@
1
- module Chef
1
+ class Chef
2
2
  class Telemetry
3
3
  class Event
4
4
 
@@ -1,7 +1,7 @@
1
1
  require "securerandom"
2
2
  require "chef-config/path_helper"
3
3
 
4
- module Chef
4
+ class Chef
5
5
  class Telemetry
6
6
  class Session
7
7
  def initialize
@@ -1,5 +1,5 @@
1
- module Chef
1
+ class Chef
2
2
  class Telemetry
3
- VERSION = "1.0.0".freeze
3
+ VERSION = "1.0.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-telemetry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-03 00:00:00.000000000 Z
11
+ date: 2019-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler