summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_Number_import_Normatives.rb
blob: 6e9b24133da6051f553c937c513bc1e582561d65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cookbook_file "/tmp/normatives.tar.gz" do
   source "normatives.tar.gz"
end

working_directory =  "/tmp"

bash "import-normatives" do
  cwd "#{working_directory}"
  code <<-EOH
    tar xvfz /tmp/normatives.tar.gz
    cd scripts/import/tosca/
    /bin/chmod +x importNormativeAll.py
    python importNormativeAll.py 
  EOH
end