Skip to content

Commit

Permalink
move around bundle creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Oct 2, 2013
1 parent d89e0a7 commit 5980434
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions R/deploy.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ deploy <- function(appDir = getwd(), appName = NULL, account = NULL) {
appDir <- normalizePath(appDir, mustWork = FALSE)
if (!file.exists(appDir) || !file.info(appDir)$isdir)
stop(appDir, " is not a valid directory")

# create the bundle we are going to upload
bundlePath <- bundleApp(appDir)


# initialize lucid client
lucid <- lucidClient(accountInfo)

Expand All @@ -36,7 +33,8 @@ deploy <- function(appDir = getwd(), appName = NULL, account = NULL) {
# get the application to deploy (creates a new app on demand)
application <- applicationForTarget(lucid, accountInfo, target)

# upload the bundle
# create and upload the bundle
bundlePath <- bundleApp(appDir)
bundle <- lucid$uploadApplication(application$id, bundlePath)

# deploy the bundle
Expand Down

0 comments on commit 5980434

Please sign in to comment.