Commit 85adaf4cd01ca45e3fcb8762ba41af3690defe46

Authored by Macartur Sousa
1 parent 900f7a45

Adding gitlab_profile.py to add widget

Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
cookbooks/colab/files/default/gitlab_profile.py 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +from colab.widgets.widget_manager import WidgetManager
  2 +
  3 +from colab_gitlab.widgets.profile.profile import GitlabProfileWidget
  4 +
  5 +WidgetManager.register_widget('profile', GitlabProfileWidget())
... ...
cookbooks/colab/recipes/default.rb
... ... @@ -194,6 +194,14 @@ cookbook_file &#39;/etc/colab/widgets.d/profile.py&#39; do
194 194 notifies :restart, 'service[colab]'
195 195 end
196 196  
  197 +cookbook_file '/etc/colab/widgets.d/gitlab_profile.py' do
  198 + owner 'root'
  199 + group 'colab'
  200 + mode 0640
  201 +
  202 + notifies :restart, 'service[colab]'
  203 +end
  204 +
197 205 # Static files
198 206 directory '/var/lib/colab/assets/spb/' do
199 207 owner 'root'
... ...