cloudwatch-metrics 0.1.3 → 0.1.4

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: 6c2de94d8e42d6fc4c02b3e7d1896f36c32bf4881c1c853907d96ae15a607bc6
4
- data.tar.gz: 8fd20a4958a52981928042e02d7aa28ceab6d65436111bdfc3ad47c8bd2bca04
3
+ metadata.gz: 1c72dffbea80fed693f0534fe877fb3e9c8b8a8ec3d61bb23b88f1926c0c16cb
4
+ data.tar.gz: 1edd1d4e525d361a5e1d062148c4b01de76d4307d4f902673b89a26bbf973cec
5
5
  SHA512:
6
- metadata.gz: '09f0d7e276d068beabac2dbe0f019ebff34f1e8ebc86745396dd3e62b08f4647d72497d5e11a44d7f32f21332f47bf63d95f8206ee94042bdb96f9e1a392e134'
7
- data.tar.gz: 3db4f71f152bbc8a5c2a100472aa2501366976b574d3b27cbdcf7a2c20619bc97633aa3bbbfdb46c462acd0a5a5c7d9657ac79570e2f8c5302cbee555794846e
6
+ metadata.gz: 5b400ec9737e28061e56fd0ed699390c41f4c65cfd640dbd9419f2a2f2fa9a2eeca88209d752bb9451a186e3a822410cdf029a503255b175ab3136d0b3e52d94
7
+ data.tar.gz: 31f3b87b8975060825b12df6b4a56a78a19d6ae2ef6b083c43b2457ed008dbef054b9e6225ffbae1be5b553666c2fa3d1cb1016b7aed3fe12202f2ff255f0e6f
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudwatchMetrics
4
+ class Configuration
5
+ attr_accessor :namespace
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudwatchMetrics
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ class InitializerGenerator < Rails::Generators::Base
4
+ source_root File.expand_path('templates', __dir__)
5
+
6
+ def copy_initializer_file
7
+ copy_file "initializer.rb", "config/initializers/cloudwatch_metrics.rb"
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ CloudwatchMetrics.configure do |config|
4
+ # This is the default namespace that all metrics from this application will be published to.
5
+ # It should most likely be the name of the application/service.
6
+ config.namespace = "APPLICATION_NAME"
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudwatch-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Puckett
@@ -82,7 +82,10 @@ files:
82
82
  - bin/console
83
83
  - bin/setup
84
84
  - lib/cloudwatch_metrics.rb
85
+ - lib/cloudwatch_metrics/configuration.rb
85
86
  - lib/cloudwatch_metrics/version.rb
87
+ - lib/generators/initializer/initializer_generator.rb
88
+ - lib/generators/initializer/templates/initializer.rb
86
89
  homepage: https://github.com/pathccm/cloudwatch_metrics
87
90
  licenses: []
88
91
  metadata: