cloudwatch-metrics 0.1.3 → 0.1.5

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: f1a79a68a8a6b1195bdee1f4b1cefe3762c5f85a410a3ce03ba039b37dc64405
4
+ data.tar.gz: ece68eb724a3de42e6ae7353a630c446da837965d1cfa8c73eb4164eedd2d3e1
5
5
  SHA512:
6
- metadata.gz: '09f0d7e276d068beabac2dbe0f019ebff34f1e8ebc86745396dd3e62b08f4647d72497d5e11a44d7f32f21332f47bf63d95f8206ee94042bdb96f9e1a392e134'
7
- data.tar.gz: 3db4f71f152bbc8a5c2a100472aa2501366976b574d3b27cbdcf7a2c20619bc97633aa3bbbfdb46c462acd0a5a5c7d9657ac79570e2f8c5302cbee555794846e
6
+ metadata.gz: 20ca2dc49826361768961f2498112add75b3e47ece63ac0d58dbccc038e7e4df44a52e7322e7564d926d7fddf772c539a82c0abae74769b1e041764071682223
7
+ data.tar.gz: b097432c0e9bd2fd7d75715fa4d11a49801133db538e7332df4c2f84e19deef46898c8aa2a563d5b86c1a488a2eaf684c5eab4581af7925524139c7c44ca644a
@@ -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.5"
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 "cloudwatch_metrics.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.5
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/cloudwatch_metrics/initializer_generator.rb
88
+ - lib/generators/cloudwatch_metrics/templates/cloudwatch_metrics.rb
86
89
  homepage: https://github.com/pathccm/cloudwatch_metrics
87
90
  licenses: []
88
91
  metadata: