summaryrefslogtreecommitdiff
path: root/lib/GitHub/Collector/Role/Context.pm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/GitHub/Collector/Role/Context.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/GitHub/Collector/Role/Context.pm b/lib/GitHub/Collector/Role/Context.pm
new file mode 100644
index 0000000..aa30d2b
--- /dev/null
+++ b/lib/GitHub/Collector/Role/Context.pm
@@ -0,0 +1,13 @@
+package GitHub::Collector::Role::Context;
+
+use YAML;
+use Moose::Role;
+with qw(MooseX::ConfigFromFile);
+
+sub get_config_from_file {
+ my ( $self, $file ) = @_;
+ my $conf = YAML::LoadFile($file);
+ $conf;
+}
+
+1;