Skip to content

Commit

Permalink
Merge pull request #27 from alessio-signorini/master
Browse files Browse the repository at this point in the history
Define Rails::Engine in the Agent GEMs created
  • Loading branch information
knu authored Jan 5, 2020
2 parents f80d8c3 + 17a4d40 commit 91e2fef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
language: ruby
rvm:
- 2.3.0
- 2.3.8
- 2.4.9
- 2.5.7
- 2.6.5
1 change: 1 addition & 0 deletions lib/huginn_agent/templates/newagent/app/views/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 3 additions & 0 deletions lib/huginn_agent/templates/newagent/lib/new_agent.rb.tt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
require 'huginn_agent'

# Allow to add views, controller, routes, etc...
class Engine < ::Rails::Engine; end

#HuginnAgent.load '<%= config[:gem_name] %>/concerns/my_agent_concern'
HuginnAgent.register '<%= config[:gem_name] %>/<%= config[:agent_file_name] %>'

0 comments on commit 91e2fef

Please sign in to comment.