You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 7
Next »
Iguana X makes it easy to create reusable template components which can be part of a git collection.
What if you need to modify the source template? This is one way to do it:
STEP 1: Change a template component’s repository
From the dashboard, click + Component and select Custom, then click Add
Once the component appears on the dashboard, double click it to bring up its information.
In the Connected To section, click on Customize
Select Remove Upstream in the drop down list and click Confirm. The Connected To section should change to the following:
You now have two options:
For now, click on Set Up to configure a repository for the component. You should see this window appear, with the Owner field being populated with the details of your Bitbucket account. If this is empty, follow this guide: Setting up Bitbucket Access
In the Repository field, pick a name for the repository such as my_first_component
then click Confirm Change. This will create a new repository for you if a repository with that name doesn’t already exist.
The window will close itself, and take you back to the component card. The Connected To section will be updated with the new repository information.
STEP 2: Commit some code changes and push them to the remote repository
Now that there is a git repository tracking this component, changes made locally can be committed and saved to the cloud.
Click on Edit Script to open the Translator
Make some code changes. If nothing comes to mind, replace the code you see with the sample below, which just changes the component’s border on the dashboard to red
function main()
component.setBorder{color="red"}
end
main()
Once you have made some changes, click on the Commit Changes button in the Translator toolbar, its the one that looks like a plus surrounded by a circle
In the window that appears you can see the changes that were made. Enter a message that summarizes the changes, then click Commit
You will be sent back to the Translator screen. Notice that there are a few changes:
The Push Changes button in the Translator toolbar which looks an arrow pointing to a cloud has a blue dot. This means a local change is ready to be pushed to the cloud repository.
A new section has appeared at the bottom. This is the Git Terminal. This is where you will see information appear when Git commands like pulling, committing and pushing are done.
Users familiar with how Git works can use this terminal to perform Git operations.
Click on the Push Changes button. If Git was able to successfully send your changes to the remote repository, you will see this:
STEP 3: Clone in your component on a different Iguana
Since the changes made have been pushed to the cloud, this component can now be cloned into any other Iguana.
Exit the Translator by clicking the X in the top right
From the component card, copy the Connected To field
In a different Iguana instance, from the dashboard click + From Url. Give the component a name, and paste in the url from before