Skip to content

Commit

Permalink
Merge pull request #22 from soburi/force_indexjson
Browse files Browse the repository at this point in the history
Create new index.json if not available in gh-pages
  • Loading branch information
soburi authored Oct 22, 2016
2 parents 8b4dd83 + 13e621b commit 3817a9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/ci_boardmanager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@

bmdata = JSON.load('{ "packages": [ { "platforms": [], "tools": [] } ] }')
begin
raise if force
bmdata = open(ghpage_url) {|f| JSON.load(f) }
rescue => e
bmdata['packages'][0]['name'] = 'defaultname'
bmdata['packages'][0]['maintainer'] = 'defaultmaintainer'
bmdata['packages'][0]['websiteURL'] = 'http://example.com'
bmdata['packages'][0]['email'] = '[email protected]'
STDERR.puts(e)
raise e if not force
#raise e if not force
end


Expand Down

0 comments on commit 3817a9b

Please sign in to comment.