Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 449196b

Browse files
committed
Merge pull request #31 from mastahyeti/pass_token_to_boxen
Pass OAuth token to boxen
2 parents 93e5306 + 8989c18 commit 449196b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

app/helpers/views/splash/script.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def download_url
1616
"#{endpoint}?access_token=#{@access_token}"
1717
end
1818

19+
def access_token
20+
@access_token
21+
end
22+
1923
def repo_name
2024
ENV['REPOSITORY']
2125
end

app/views/splash/script.sh.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ sudo -p " Password for sudo again: " true
7979

8080
cd /opt/boxen/repo
8181
export BOXEN_REPO_NAME=<%= view.repo_name %>
82-
script/boxen
82+
script/boxen --token <%= "#{view.access_token}" %>
8383

8484
cd $HOME
8585

0 commit comments

Comments
 (0)