Skip to content

Commit

Permalink
get imperator_api key from redmine cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
jasiekkk committed Jul 22, 2016
1 parent 36ec9ab commit 93c5eb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ script:
- . bundler-gemlocal.sh
- cp Gemlocal.example Gemlocal
- cp config/database.yml.example config/database.yml
- cp config/settings.yml.example config/settings.yml
- cat config/settings.yml.example >> $WORKSPACE/redmine/config/settings.yml
- BUNDLE_GEMFILE=Gemlocal gemlocal_aware_bundle install --path vendor/gemlocal_aware_bundle
- BUNDLE_GEMFILE=Gemlocal gemlocal_aware_bundle exec rake test
- bash -x ./.travis-init.sh -u || exit 1
Expand Down
2 changes: 1 addition & 1 deletion lib/imperator_api/key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module ImperatorApi
class Key
class Secret
def self.read_key_file
File.read(File.expand_path(File.dirname(__FILE__) + '/../../config/settings.yml'))
File.read(File.expand_path(File.dirname(__FILE__) + '/../../../../config/settings.yml'))
end

def self.imperator_api_key
Expand Down

0 comments on commit 93c5eb8

Please sign in to comment.